comparison src/audio/mint/SDL_mintaudio_gsxb.h @ 644:594422ab8f9f

Atari MiNT: added more audio drivers
author Patrice Mandin <patmandin@gmail.com>
date Mon, 07 Jul 2003 19:16:03 +0000
parents
children d910939febfa
comparison
equal deleted inserted replaced
643:564716cfb502 644:594422ab8f9f
1 /*
2 * GSXB audio definitions
3 *
4 * Patrice Mandin
5 */
6
7 #ifndef _SDL_mintaudio_gsxb_h
8 #define _SDL_mintaudio_gsxb_h
9
10 #include <mint/falcon.h> /* for trap_14_xxx macros */
11
12 /* GSXB Cookie */
13
14 #define C_GSXB 0x47535842L
15
16 /* Bit 5 in cookie _SND */
17
18 #define SND_GSXB (1<<5)
19
20 /* NSoundcmd modes */
21
22 #define SETRATE 7 /* Set sample rate */
23 #define SET8BITFORMAT 8 /* 8 bits format */
24 #define SET16BITFORMAT 9 /* 16 bits format */
25 #define SET24BITFORMAT 10 /* 24 bits format */
26 #define SET32BITFORMAT 11 /* 32 bits format */
27 #define LTATTEN_MASTER 12 /* Attenuation */
28 #define RTATTEN_MASTER 13
29 #define LTATTEN_MICIN 14
30 #define RTATTEN_MICIN 15
31 #define LTATTEN_FMGEN 16
32 #define RTATTEN_FMGEN 17
33 #define LTATTEN_LINEIN 18
34 #define RTATTEN_LINEIN 19
35 #define LTATTEN_CDIN 20
36 #define RTATTEN_CDIN 21
37 #define LTATTEN_VIDIN 22
38 #define RTATTEN_VIDIN 23
39 #define LTATTEN_AUXIN 24
40 #define RTATTEN_AUXIN 25
41
42 /* Setmode modes */
43
44 #define MONO16 3
45 #define STEREO24 4
46 #define STEREO32 5
47 #define MONO24 6
48 #define MONO32 7
49
50 /* Sndstatus modes */
51
52 #define SND_QUERYFORMATS 2
53 #define SND_QUERYMIXERS 3
54 #define SND_QUERYSOURCES 4
55 #define SND_QUERYDUPLEX 5
56 #define SND_QUERY8BIT 8
57 #define SND_QUERY16BIT 9
58 #define SND_QUERY24BIT 10
59 #define SND_QUERY32BIT 11
60
61 #define SND_FORMAT8 (1<<0)
62 #define SND_FORMAT16 (1<<1)
63 #define SND_FORMAT24 (1<<2)
64 #define SND_FORMAT32 (1<<3)
65
66 #define SND_FORMATSIGNED (1<<0)
67 #define SND_FORMATUNSIGNED (1<<1)
68 #define SND_FORMATBIGENDIAN (1<<2)
69 #define SND_FORMATLITTLEENDIAN (1<<3)
70
71 /* Devconnect prescalers */
72
73 #define CLK_44K 1
74 #define CLK_22K 3
75 #define CLK_11K 7
76
77 /* Extra xbios functions */
78
79 #define NSoundcmd(mode,data,data2) \
80 (long)trap_14_wwl((short)130,(short)(mode),(short)(data),(long)(data2))
81 #define NSetinterrupt(src_inter,cause,inth_addr) \
82 (long)trap_14_wwwl((short)135,(short)(src_inter),(short)(cause), \
83 (long)(inth_addr))
84
85 #endif /* _SDL_mintaudio_gsxb_h */