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

libtdemid

  • libtdemid
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/libtdemid.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 #define CTL_EXT_EFF_DEPTH 0x50
67 #define CTL_CHORUS_DEPTH 0x5D
68 
69 #define SEQ_DEFINEBUF(a)
70 #define SEQ_USE_EXTBUF()
71 #define SEQ_MIDIOUT(a,b) {}
72 #define SEQ_START_NOTE(a,b,c,d) {}
73 #define SEQ_STOP_NOTE(a,b,c,d) {}
74 #define SEQ_SET_PATCH(a,b,c) {}
75 #define SEQ_CONTROL(a,b,c,d) {}
76 #define SEQ_BENDER(a,b,c) {}
77 #define SEQ_CHN_PRESSURE(a,b,c) {}
78 #define SEQ_KEY_PRESSURE(a,b,c,d) {}
79 #define SEQ_DUMPBUF()
80 #define SEQ_WAIT_TIME(a)
81 #define SEQ_START_TIMER()
82 #define SEQ_STOP_TIMER()
83 #define SEQ_CONTINUE_TIMER()
84 
85 
86 #endif
87 
88 
89 
90 #endif

libtdemid

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

libtdemid

Skip menu "libtdemid"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for libtdemid by doxygen 1.9.1
This website is maintained by Timothy Pearson.