sndcard.h Source File (libkmid Library)

| # libkmid Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# sndcard.h

    00001 /*  sndcard.h  - include the OSS' soundcard.h file
    00002     This file is part of LibKMid 0.9.5
    00003     Copyright (C) 1997,98,99,2000  Antonio Larrosa Jimenez
    00004     LibKMid's homepage : http://www.arrakis.es/~rlarrosa/libkmid.html
    00005
    00006     This library is free software; you can redistribute it and/or
    00007     modify it under the terms of the GNU Library General Public
    00008     License as published by the Free Software Foundation; either
    00009     version 2 of the License, or (at your option) any later version.
    00010
    00011     This library is distributed in the hope that it will be useful,
    00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014     Library General Public License for more details.
    00015
    00016     You should have received a copy of the GNU Library General Public License
    00017     along with this library; see the file COPYING.LIB.  If not, write to
    00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00019     Boston, MA 02111-1307, USA.
    00020
    00021     Send comments and bug fixes to Antonio Larrosa <larrosa@kde.org>
    00022
    00023 ***************************************************************************/
    00024
    00025 #ifndef _SNDCARD_H
    00026 #define _SNDCARD_H
    00027
    00028 #ifdef HAVE_CONFIG_H
    00029 #include <config.h>
    00030 #endif
    00031
    00032 #ifdef HAVE_SYS_SOUNDCARD_H
    00033  #include <sys/soundcard.h>
    00034  #define HAVE_OSS_SUPPORT
    00035 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
    00036  #include <machine/soundcard.h>
    00037  #define HAVE_OSS_SUPPORT
    00038 #else
    00039  #undef HAVE_OSS_SUPPORT
    00040 #endif
    00041
    00042 #ifdef HAVE_OSS_SUPPORT
    00043
    00044 #ifndef HZ
    00045 #define HZ 100
    00046 #endif
    00047
    00048 #ifndef MIDI_TYPE_MPU401
    00049 #define MIDI_TYPE_MPU401 0x401
    00050 #endif
    00051
    00052 #else
    00053
    00054 #define MIDI_NOTEON 0x80
    00055 #define MIDI_NOTEOFF 0x90
    00056 #define MIDI_KEY_PRESSURE 0xA0
    00057 #define MIDI_CTL_CHANGE 0xB0
    00058 #define MIDI_PGM_CHANGE 0xC0
    00059 #define MIDI_CHN_PRESSURE 0xD0
    00060 #define MIDI_PITCH_BEND 0xE0
    00061 #define MIDI_SYSTEM_PREFIX 0xF0
    00062 #define CTL_MAIN_VOLUME 7
    00063
    00064 #define SEQ_DEFINEBUF(a)
    00065 #define SEQ_USE_EXTBUF()
    00066 #define SEQ_MIDIOUT(a,b) {}
    00067 #define SEQ_START_NOTE(a,b,c,d) {}
    00068 #define SEQ_STOP_NOTE(a,b,c,d) {}
    00069 #define SEQ_SET_PATCH(a,b,c) {}
    00070 #define SEQ_CONTROL(a,b,c,d) {}
    00071 #define SEQ_BENDER(a,b,c) {}
    00072 #define SEQ_CHN_PRESSURE(a,b,c) {}
    00073 #define SEQ_KEY_PRESSURE(a,b,c,d) {}
    00074 #define SEQ_DUMPBUF()
    00075 #define SEQ_WAIT_TIME(a)
    00076 #define SEQ_START_TIMER()
    00077 #define SEQ_STOP_TIMER()
    00078 #define SEQ_CONTINUE_TIMER()
    00079
    00080
    00081 #endif
    00082
    00083
    00084
    00085 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:28:30 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001