1 /***************************************************************************
2  *   S3m/Mod player by Daniel Marks (dmarks@ais.net)
3  *   GUS support by David Jeske (jeske@uiuc.edu)
4  *
5  * (C) 1994,1995 By Daniel Marks and David Jeske
6  *
7  * While we retain the copyright to this code, this source code is FREE.
8  * You may use it in any way you wish, in any product you wish. You may
9  * NOT steal the copyright for this code from us.
10  *
11  * We respectfully ask that you email one of us, if possible, if you
12  * produce something significant with this code, or if you have any bug
13  * fixes to contribute.  We also request that you give credit where
14  * credit is due if you include part of this code in a program of your own.
15  *
16  * Email: s3mod@uiuc.edu
17  *        jeske@uiuc.edu
18  *
19  * See the associated README file for Thanks
20  ***************************************************************************
21  *
22  * gus.h - Header for Gravis Ultrasound support
23  *
24  */
25 
26 #ifndef _GUS_H
27 #define _GUS_H
28 
29 #include <sys/soundcard.h>
30 
31 #define ERR_SEQUENCER    51
32 #define ERR_NOGUS        53
33 #define PAN_HARDWARE      1
34 
35 
36 extern int ticks_per_division;
37 extern double tick_duration;
38 extern double this_time,next_time;
39 
40 void sync_time(void);
41 
42 extern unsigned char _seqbuf[];
43 extern int _seqbuflen, _seqbufptr;
44 unsigned short base_freq_table[16];
45 extern unsigned int gus_total_mem;
46 
47 int gus_mem_free(int dev);
48 void play_mod_gus(int loud);
49 int get_gus_device(void);
50 void gus_set_speed(int parm);
51 
52 #endif /* _GUS_H */
53