1 /* 2 * OpenBOR - http://www.chronocrash.com 3 * ----------------------------------------------------------------------- 4 * All rights reserved, see LICENSE in OpenBOR root for details. 5 * 6 * Copyright (c) 2004 - 2014 OpenBOR Team 7 */ 8 9 // A soundblaster interface. No bugs? 10 11 #ifndef SBLASTER_H 12 #define SBLASTER_H 13 14 #define MAXDMABUFSIZE 0x10000 15 #define MONO 0 16 #define STEREO 1 17 #define LOWQ 0 18 #define HIGHQ 2 19 #define SBDETECT -1 20 #define SB_MASTERVOL 0x22 21 #define SB_VOICEVOL 0x04 22 #define SB_CDVOL 0x28 23 24 // Globals 25 26 extern char *errptr; 27 28 29 // The interface 30 int SB_playstart(int bits, int samplerate); 31 void SB_playstop(); 32 33 //int SB_getvolume(char dev); 34 void SB_setvolume(char dev, char volume); 35 void SB_updatevolume(int volume); 36 37 #endif 38