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 #define	SB_MASTERVOL	0x22
19 #define	SB_VOICEVOL		0x04
20 #define	SB_CDVOL		0x28
21 
22 // Globals
23 extern char *errptr;
24 
25 // The interface
26 int SB_playstart(int bits, int samplerate);
27 void SB_playstop();
28 
29 //int SB_getvolume(char dev);
30 void SB_setvolume(char dev, char volume);
31 void SB_updatevolume(int volume);
32 
33 #endif
34