libkmid.h
/* libkmid.h - class KMidSimpleAPI that makes it easy to use libkmid
and a C wrapper.
This file is part of LibKMid 0.9.5
Copyright (C) 2000 Antonio Larrosa Jimenez
LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
***************************************************************************/
#ifndef _LIBKMID_H
#define _LIBKMID_H
#ifdef __cplusplus
#include <kdelibs_export.h>
class KMID_EXPORT KMidSimpleAPI
{
private:
class KMidSimpleAPIPrivate;
KMidSimpleAPIPrivate *d;
public:
static int kMidInit(void);
static int kMidLoad(const char *filename);
static int kMidPlay(int loop=0);
static int kMidStop(void);
static void kMidDestruct(void);
static int kMidIsPlaying(void);
static int kMidDevices(void);
static const char *kMidName(int i);
static const char *kMidType(int i);
static void kMidSetDevice(int i);
static void kMidSetMidiMapper(const char *mapfilename);
static const char *kMidVersion(void);
static const char *kMidCopyright(void);
};
extern "C" {
#else
#define KMID_EXPORT
#endif
KMID_EXPORT int kMidInit(void);
KMID_EXPORT int kMidLoad(const char *filename);
KMID_EXPORT int kMidPlay(void);
KMID_EXPORT int kMidStop(void);
KMID_EXPORT void kMidDestruct(void);
KMID_EXPORT int kMidIsPlaying(void);
KMID_EXPORT int kMidDevices(void);
KMID_EXPORT const char * kMidName(int i);
KMID_EXPORT const char * kMidType(int i);
KMID_EXPORT void kMidSetDevice(int i);
KMID_EXPORT void kMidSetMidiMapper(const char *mapfilename);
KMID_EXPORT const char * kMidVersion(void);
KMID_EXPORT const char * kMidCopyright(void);
#ifdef __cplusplus
}
extern struct kMidData
{
class DeviceManager *midi;
class MidiPlayer *player;
class MidiMapper *map;
struct PlayerController *pctl;
int pctlsmID;
int pid;
} kMid;
#endif
#endif
MidiPlayer
MIDI file player routines .
Definition: player.h:260
PlayerController
PlayerController is a struct that is used by the MidiPlayer object to tell other parts of the applica...
Definition: player.h:138
MidiMapper
A Midi Mapper class which defines the way MIDI events are translated (or "mapped") to different ones...
Definition: midimapper.h:59
DeviceManager
MIDI Device Manager class .
Definition: deviceman.h:47

KDE Home | KDE Accessibility Home | Description of Access Keys