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 #ifndef SBLASTER_H
10 #define SBLASTER_H
11 
12 #define		MAXDMABUFSIZE	0x10000
13 #define		MONO		0
14 #define		STEREO		1
15 #define		LOWQ		0
16 #define		HIGHQ		2
17 #define		SBDETECT	-1
18 
19 #define		SB_MASTERVOL	0x22
20 #define		SB_VOICEVOL	0x04
21 #define		SB_CDVOL	0x28
22 
23 // The interface
24 
25 int SB_playstart(int bits, int samplerate);
26 void SB_playstop();
27 char SB_getvolume(char dev);
28 char SB_setvolume(char dev, char volume);
29 
30 
31 #endif
32