1 /*
2  * OpenBOR - http://www.LavaLit.com
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in OpenBOR root for details.
5  *
6  * Copyright (c) 2004 - 2011 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 
21 #define		SB_MASTERVOL	0x22
22 #define		SB_VOICEVOL	0x04
23 #define		SB_CDVOL	0x28
24 
25 
26 
27 // Globals
28 
29 extern char *errptr;
30 
31 
32 // The interface
33 
34 int SB_playstart(int bits, int samplerate);
35 int SB_getpos();
36 void SB_playstop();
37 void SB_exit();
38 void SB_setvolume(char dev, char volume);
39 
40 
41 #endif
42