src/audio/mint/SDL_mintaudio_gsxb.h
author Sam Lantinga
Sat, 19 Sep 2009 13:29:40 +0000
changeset 3280 00cace2d9080
parent 2859 99210400e8b9
permissions -rw-r--r--
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
slouken@1402
     1
/*
slouken@1402
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@1402
     4
slouken@1402
     5
    This library is free software; you can redistribute it and/or
slouken@1402
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1402
     7
    License as published by the Free Software Foundation; either
slouken@1402
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1402
     9
slouken@1402
    10
    This library is distributed in the hope that it will be useful,
slouken@1402
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1402
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1402
    13
    Lesser General Public License for more details.
slouken@1402
    14
slouken@1402
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1402
    16
    License along with this library; if not, write to the Free Software
slouken@1402
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1402
    18
slouken@1402
    19
    Sam Lantinga
slouken@1402
    20
    slouken@libsdl.org
slouken@1402
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@1402
    23
patmandin@644
    24
/*
patmandin@644
    25
 * GSXB audio definitions
patmandin@644
    26
 * 
patmandin@644
    27
 * Patrice Mandin
patmandin@644
    28
 */
patmandin@644
    29
patmandin@644
    30
#ifndef _SDL_mintaudio_gsxb_h
patmandin@644
    31
#define _SDL_mintaudio_gsxb_h
patmandin@644
    32
slouken@1895
    33
#include <mint/falcon.h>        /* for trap_14_xxx macros */
patmandin@644
    34
patmandin@644
    35
/* GSXB Cookie */
patmandin@644
    36
patmandin@644
    37
#define C_GSXB		0x47535842L
patmandin@644
    38
patmandin@644
    39
/* Bit 5 in cookie _SND */
patmandin@644
    40
patmandin@644
    41
#define SND_GSXB	(1<<5)
patmandin@644
    42
patmandin@644
    43
/* NSoundcmd modes */
patmandin@644
    44
slouken@1895
    45
#define SETRATE			7       /* Set sample rate */
slouken@1895
    46
#define SET8BITFORMAT	8       /* 8 bits format */
slouken@1895
    47
#define SET16BITFORMAT	9       /* 16 bits format */
slouken@1895
    48
#define SET24BITFORMAT	10      /* 24 bits format */
slouken@1895
    49
#define SET32BITFORMAT	11      /* 32 bits format */
slouken@1895
    50
#define LTATTEN_MASTER	12      /* Attenuation */
patmandin@644
    51
#define RTATTEN_MASTER	13
patmandin@644
    52
#define LTATTEN_MICIN	14
patmandin@644
    53
#define RTATTEN_MICIN	15
patmandin@644
    54
#define LTATTEN_FMGEN	16
patmandin@644
    55
#define RTATTEN_FMGEN	17
patmandin@644
    56
#define LTATTEN_LINEIN	18
patmandin@644
    57
#define RTATTEN_LINEIN	19
patmandin@644
    58
#define LTATTEN_CDIN	20
patmandin@644
    59
#define RTATTEN_CDIN	21
patmandin@644
    60
#define LTATTEN_VIDIN	22
patmandin@644
    61
#define RTATTEN_VIDIN	23
patmandin@644
    62
#define LTATTEN_AUXIN	24
patmandin@644
    63
#define RTATTEN_AUXIN	25
patmandin@644
    64
patmandin@644
    65
/* Setmode modes */
patmandin@644
    66
patmandin@644
    67
#define MONO16		3
patmandin@644
    68
#define STEREO24	4
patmandin@644
    69
#define STEREO32	5
patmandin@644
    70
#define MONO24		6
patmandin@644
    71
#define MONO32		7
patmandin@644
    72
patmandin@644
    73
/* Sndstatus modes */
patmandin@644
    74
patmandin@644
    75
#define SND_QUERYFORMATS	2
patmandin@644
    76
#define SND_QUERYMIXERS		3
patmandin@644
    77
#define SND_QUERYSOURCES	4
patmandin@644
    78
#define SND_QUERYDUPLEX		5
patmandin@644
    79
#define SND_QUERY8BIT		8
patmandin@644
    80
#define SND_QUERY16BIT		9
patmandin@644
    81
#define SND_QUERY24BIT		10
patmandin@644
    82
#define SND_QUERY32BIT		11
patmandin@644
    83
patmandin@644
    84
#define SND_FORMAT8		(1<<0)
patmandin@644
    85
#define SND_FORMAT16	(1<<1)
patmandin@644
    86
#define SND_FORMAT24	(1<<2)
patmandin@644
    87
#define SND_FORMAT32	(1<<3)
patmandin@644
    88
patmandin@644
    89
#define SND_FORMATSIGNED		(1<<0)
patmandin@644
    90
#define SND_FORMATUNSIGNED		(1<<1)
patmandin@644
    91
#define SND_FORMATBIGENDIAN		(1<<2)
patmandin@644
    92
#define SND_FORMATLITTLEENDIAN	(1<<3)
patmandin@644
    93
patmandin@644
    94
/* Devconnect prescalers */
patmandin@644
    95
patmandin@644
    96
#define CLK_44K		1
patmandin@644
    97
#define CLK_22K		3
patmandin@644
    98
#define CLK_11K		7
patmandin@644
    99
patmandin@644
   100
/* Extra xbios functions */
patmandin@644
   101
patmandin@644
   102
#define NSoundcmd(mode,data,data2)	\
patmandin@644
   103
	(long)trap_14_wwl((short)130,(short)(mode),(short)(data),(long)(data2))
patmandin@644
   104
#define NSetinterrupt(src_inter,cause,inth_addr)	\
patmandin@644
   105
	(long)trap_14_wwwl((short)135,(short)(src_inter),(short)(cause),	\
patmandin@644
   106
		(long)(inth_addr))
patmandin@644
   107
patmandin@644
   108
#endif /* _SDL_mintaudio_gsxb_h */
slouken@1895
   109
/* vi: set ts=4 sw=4 expandtab: */