Home | History | Annotate | Download | only in mint
      1 /*
      2     SDL - Simple DirectMedia Layer
      3     Copyright (C) 1997-2012 Sam Lantinga
      4 
      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.
      9 
     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.
     14 
     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
     18 
     19     Sam Lantinga
     20     slouken (at) libsdl.org
     21 */
     22 #include "SDL_config.h"
     23 
     24 /*
     25  * GSXB audio definitions
     26  *
     27  * Patrice Mandin
     28  */
     29 
     30 #ifndef _SDL_mintaudio_gsxb_h
     31 #define _SDL_mintaudio_gsxb_h
     32 
     33 #include <mint/falcon.h>	/* for trap_14_xxx macros */
     34 
     35 /* Bit 5 in cookie _SND */
     36 
     37 #define SND_GSXB	(1<<5)
     38 
     39 /* NSoundcmd modes */
     40 
     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
     60 
     61 /* Setmode modes */
     62 
     63 #define MONO16		3
     64 #define STEREO24	4
     65 #define STEREO32	5
     66 #define MONO24		6
     67 #define MONO32		7
     68 
     69 /* Sndstatus modes */
     70 
     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
     79 
     80 #define SND_FORMAT8		(1<<0)
     81 #define SND_FORMAT16	(1<<1)
     82 #define SND_FORMAT24	(1<<2)
     83 #define SND_FORMAT32	(1<<3)
     84 
     85 #define SND_FORMATSIGNED		(1<<0)
     86 #define SND_FORMATUNSIGNED		(1<<1)
     87 #define SND_FORMATBIGENDIAN		(1<<2)
     88 #define SND_FORMATLITTLEENDIAN	(1<<3)
     89 
     90 /* Devconnect prescalers */
     91 
     92 #define CLK_44K		1
     93 #define CLK_22K		3
     94 #define CLK_11K		7
     95 
     96 /* Extra xbios functions */
     97 
     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),	\
    102 		(long)(inth_addr))
    103 
    104 #endif /* _SDL_mintaudio_gsxb_h */
    105