libkmid.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _LIBKMID_H
00026 #define _LIBKMID_H
00027
00028 #ifdef __cplusplus
00029
00054 class KMidSimpleAPI
00055 {
00056 private:
00057 class KMidSimpleAPIPrivate;
00058 KMidSimpleAPIPrivate *d;
00059
00060 public:
00061
00071 static int kMidInit(void);
00072
00076 static int kMidLoad(const char *filename);
00077
00092 static int kMidPlay(int loop=0);
00093
00100 static int kMidStop(void);
00101
00106 static void kMidDestruct(void);
00107
00112 static int kMidIsPlaying(void);
00113
00121 static int kMidDevices(void);
00122
00132 static const char *kMidName(int i);
00133
00143 static const char *kMidType(int i);
00144
00151 static void kMidSetDevice(int i);
00152
00162 static void kMidSetMidiMapper(const char *mapfilename);
00163
00167 static const char *kMidVersion(void);
00168
00176 static const char *kMidCopyright(void);
00177
00178 };
00179
00180
00181
00182 extern "C" {
00183
00184 #endif
00185
00186
00187 int kMidInit(void);
00188 int kMidLoad(const char *filename);
00189 int kMidPlay(void);
00190 int kMidStop(void);
00191 void kMidDestruct(void);
00192 int kMidIsPlaying(void);
00193 int kMidDevices(void);
00194 const char * kMidName(int i);
00195 const char * kMidType(int i);
00196 void kMidSetDevice(int i);
00197 void kMidSetMidiMapper(const char *mapfilename);
00198 const char * kMidVersion(void);
00199 const char * kMidCopyright(void);
00200
00201
00202
00203 #ifdef __cplusplus
00204
00205 }
00206
00210 extern struct kMidData
00211 {
00212 class DeviceManager *midi;
00213 class MidiPlayer *player;
00214 class MidiMapper *map;
00215 struct PlayerController *pctl;
00216 int pctlsmID;
00217 int pid;
00218 } kMid;
00219 #endif
00220
00221
00222 #endif
This file is part of the documentation for kdelibs Version 3.1.4.