2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2012 Sam Lantinga
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include "SDL_config.h"
25 * GSXB audio definitions
30 #ifndef _SDL_mintaudio_gsxb_h
31 #define _SDL_mintaudio_gsxb_h
33 #include <mint/falcon.h> /* for trap_14_xxx macros */
35 /* Bit 5 in cookie _SND */
37 #define SND_GSXB (1<<5)
41 #define SETRATE 7 /* Set sample rate */
42 #define SET8BITFORMAT 8 /* 8 bits format */
43 #define SET16BITFORMAT 9 /* 16 bits format */
44 #define SET24BITFORMAT 10 /* 24 bits format */
45 #define SET32BITFORMAT 11 /* 32 bits format */
46 #define LTATTEN_MASTER 12 /* Attenuation */
47 #define RTATTEN_MASTER 13
48 #define LTATTEN_MICIN 14
49 #define RTATTEN_MICIN 15
50 #define LTATTEN_FMGEN 16
51 #define RTATTEN_FMGEN 17
52 #define LTATTEN_LINEIN 18
53 #define RTATTEN_LINEIN 19
54 #define LTATTEN_CDIN 20
55 #define RTATTEN_CDIN 21
56 #define LTATTEN_VIDIN 22
57 #define RTATTEN_VIDIN 23
58 #define LTATTEN_AUXIN 24
59 #define RTATTEN_AUXIN 25
71 #define SND_QUERYFORMATS 2
72 #define SND_QUERYMIXERS 3
73 #define SND_QUERYSOURCES 4
74 #define SND_QUERYDUPLEX 5
75 #define SND_QUERY8BIT 8
76 #define SND_QUERY16BIT 9
77 #define SND_QUERY24BIT 10
78 #define SND_QUERY32BIT 11
80 #define SND_FORMAT8 (1<<0)
81 #define SND_FORMAT16 (1<<1)
82 #define SND_FORMAT24 (1<<2)
83 #define SND_FORMAT32 (1<<3)
85 #define SND_FORMATSIGNED (1<<0)
86 #define SND_FORMATUNSIGNED (1<<1)
87 #define SND_FORMATBIGENDIAN (1<<2)
88 #define SND_FORMATLITTLEENDIAN (1<<3)
90 /* Devconnect prescalers */
96 /* Extra xbios functions */
98 #define NSoundcmd(mode,data,data2) \
99 (long)trap_14_wwl((short)130,(short)(mode),(short)(data),(long)(data2))
100 #define NSetinterrupt(src_inter,cause,inth_addr) \
101 (long)trap_14_wwwl((short)135,(short)(src_inter),(short)(cause), \
104 #endif /* _SDL_mintaudio_gsxb_h */