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

libkmid

  • libkmid
sndcard.h
1 /* sndcard.h - include the OSS' soundcard.h file
2  This file is part of LibKMid 0.9.5
3  Copyright (C) 1997,98,99,2000 Antonio Larrosa Jimenez
4  LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 
21  Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
22 
23 ***************************************************************************/
24 
25 #ifndef _SNDCARD_H
26 #define _SNDCARD_H
27 
28 #ifdef HAVE_CONFIG_H
29 #include <config.h>
30 #endif
31 
32 #ifdef HAVE_SYS_SOUNDCARD_H
33  #include <sys/soundcard.h>
34 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
35  #include <machine/soundcard.h>
36 #endif
37 
38 /* Check for OSS MIDI API */
39 #if defined(SNDCTL_SEQ_NRSYNTHS) && defined(CTL_MAIN_VOLUME)
40  #define HAVE_OSS_SUPPORT
41 #else
42  #undef HAVE_OSS_SUPPORT
43 #endif
44 
45 #ifdef HAVE_OSS_SUPPORT
46 
47 #ifndef HZ
48 #define HZ 100
49 #endif
50 
51 #ifndef MIDI_TYPE_MPU401
52 #define MIDI_TYPE_MPU401 0x401
53 #endif
54 
55 #else
56 
57 #define MIDI_NOTEON 0x80
58 #define MIDI_NOTEOFF 0x90
59 #define MIDI_KEY_PRESSURE 0xA0
60 #define MIDI_CTL_CHANGE 0xB0
61 #define MIDI_PGM_CHANGE 0xC0
62 #define MIDI_CHN_PRESSURE 0xD0
63 #define MIDI_PITCH_BEND 0xE0
64 #define MIDI_SYSTEM_PREFIX 0xF0
65 #define CTL_MAIN_VOLUME 7
66 
67 #define SEQ_DEFINEBUF(a)
68 #define SEQ_USE_EXTBUF()
69 #define SEQ_MIDIOUT(a,b) {}
70 #define SEQ_START_NOTE(a,b,c,d) {}
71 #define SEQ_STOP_NOTE(a,b,c,d) {}
72 #define SEQ_SET_PATCH(a,b,c) {}
73 #define SEQ_CONTROL(a,b,c,d) {}
74 #define SEQ_BENDER(a,b,c) {}
75 #define SEQ_CHN_PRESSURE(a,b,c) {}
76 #define SEQ_KEY_PRESSURE(a,b,c,d) {}
77 #define SEQ_DUMPBUF()
78 #define SEQ_WAIT_TIME(a)
79 #define SEQ_START_TIMER()
80 #define SEQ_STOP_TIMER()
81 #define SEQ_CONTINUE_TIMER()
82 
83 
84 #endif
85 
86 
87 
88 #endif

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.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |