• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkmid
 

libkmid

  • libkmid
libkmid.h
1 /* libkmid.h - class KMidSimpleAPI that makes it easy to use libkmid
2  and a C wrapper.
3  This file is part of LibKMid 0.9.5
4  Copyright (C) 2000 Antonio Larrosa Jimenez
5  LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 
22  Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
23 
24 ***************************************************************************/
25 #ifndef _LIBKMID_H
26 #define _LIBKMID_H
27 
28 #ifdef __cplusplus
29 
30 #include <kdelibs_export.h>
31 
56 class KMID_EXPORT KMidSimpleAPI
57 {
58  private:
59  class KMidSimpleAPIPrivate;
60  KMidSimpleAPIPrivate *d;
61 
62  public:
63 
73  static int kMidInit(void);
74 
78  static int kMidLoad(const char *filename);
79 
94  static int kMidPlay(int loop=0);
95 
102  static int kMidStop(void);
103 
108  static void kMidDestruct(void);
109 
114  static int kMidIsPlaying(void);
115 
123  static int kMidDevices(void);
124 
134  static const char *kMidName(int i);
135 
145  static const char *kMidType(int i);
146 
153  static void kMidSetDevice(int i);
154 
164  static void kMidSetMidiMapper(const char *mapfilename);
165 
169  static const char *kMidVersion(void);
170 
178  static const char *kMidCopyright(void);
179 
180 };
181 
182 
183 
184 extern "C" {
185 
186 #else
187 #define KMID_EXPORT
188 #endif
189 
190 
191 KMID_EXPORT int kMidInit(void);
192 KMID_EXPORT int kMidLoad(const char *filename);
193 KMID_EXPORT int kMidPlay(void);
194 KMID_EXPORT int kMidStop(void);
195 KMID_EXPORT void kMidDestruct(void);
196 KMID_EXPORT int kMidIsPlaying(void);
197 KMID_EXPORT int kMidDevices(void);
198 KMID_EXPORT const char * kMidName(int i);
199 KMID_EXPORT const char * kMidType(int i);
200 KMID_EXPORT void kMidSetDevice(int i);
201 KMID_EXPORT void kMidSetMidiMapper(const char *mapfilename);
202 KMID_EXPORT const char * kMidVersion(void);
203 KMID_EXPORT const char * kMidCopyright(void);
204 
205 
206 
207 #ifdef __cplusplus
208 
209 }
210 
214 extern struct kMidData
215 {
216  class DeviceManager *midi;
217  class MidiPlayer *player;
218  class MidiMapper *map;
219  struct PlayerController *pctl;
220  int pctlsmID;
221  int pid;
222 } kMid;
223 #endif
224 
225 
226 #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

libkmid

Skip menu "libkmid"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkmid

Skip menu "libkmid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for libkmid by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |