src/audio/mint/SDL_mintaudio_stfa.h
changeset 644 594422ab8f9f
child 769 b8d311d90021
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/audio/mint/SDL_mintaudio_stfa.h	Mon Jul 07 19:16:03 2003 +0000
     1.3 @@ -0,0 +1,99 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +/*
    1.27 +	STFA control structure
    1.28 +
    1.29 +	Patrice Mandin
    1.30 +*/
    1.31 +
    1.32 +#ifndef _SDL_mintaudio_stfa_h
    1.33 +#define _SDL_mintaudio_stfa_h
    1.34 +
    1.35 +/*--- Defines ---*/
    1.36 +
    1.37 +#define C_STFA	0x53544641L	/* Sound treiber für atari (seb/The removers) */
    1.38 +
    1.39 +#define STFA_PLAY_ENABLE	(1<<0)
    1.40 +#define STFA_PLAY_DISABLE	(0<<0)
    1.41 +#define STFA_PLAY_REPEAT	(1<<1)
    1.42 +#define STFA_PLAY_SINGLE	(0<<1)
    1.43 +
    1.44 +#define STFA_FORMAT_SIGNED		(1<<15)
    1.45 +#define STFA_FORMAT_UNSIGNED	(0<<15)
    1.46 +#define STFA_FORMAT_STEREO		(1<<14)
    1.47 +#define STFA_FORMAT_MONO		(0<<14)
    1.48 +#define STFA_FORMAT_16BIT		(1<<13)
    1.49 +#define STFA_FORMAT_8BIT		(0<<13)
    1.50 +#define STFA_FORMAT_LITENDIAN	(1<<9)
    1.51 +#define STFA_FORMAT_BIGENDIAN	(0<<9)
    1.52 +#define STFA_FORMAT_FREQ_MASK	0x0f
    1.53 +enum {
    1.54 +	STFA_FORMAT_F4995=0,
    1.55 +	STFA_FORMAT_F6269,
    1.56 +	STFA_FORMAT_F7493,
    1.57 +	STFA_FORMAT_F8192,
    1.58 +
    1.59 +	STFA_FORMAT_F9830,
    1.60 +	STFA_FORMAT_F10971,
    1.61 +	STFA_FORMAT_F12538,
    1.62 +	STFA_FORMAT_F14985,
    1.63 +
    1.64 +	STFA_FORMAT_F16384,
    1.65 +	STFA_FORMAT_F19819,
    1.66 +	STFA_FORMAT_F21943,
    1.67 +	STFA_FORMAT_F24576,
    1.68 +
    1.69 +	STFA_FORMAT_F30720,
    1.70 +	STFA_FORMAT_F32336,
    1.71 +	STFA_FORMAT_F43885,
    1.72 +	STFA_FORMAT_F49152
    1.73 +};
    1.74 +
    1.75 +/*--- Types ---*/
    1.76 +
    1.77 +typedef struct {
    1.78 +	unsigned short sound_enable;
    1.79 +	unsigned short sound_control;
    1.80 +	unsigned short sound_output;
    1.81 +	unsigned long sound_start;
    1.82 +	unsigned long sound_current;
    1.83 +	unsigned long sound_end;
    1.84 +	unsigned short version;
    1.85 +	void *old_vbl;
    1.86 +	void *old_timera;
    1.87 +	unsigned long old_mfp_status;
    1.88 +	void *new_vbl;
    1.89 +	void *drivers_list;
    1.90 +	void *play_stop;
    1.91 +	unsigned short frequency;
    1.92 +	void *set_frequency;
    1.93 +	
    1.94 +	unsigned short frequency_threshold;
    1.95 +	unsigned short *custom_freq_table;
    1.96 +	unsigned short stfa_on_off;
    1.97 +	void *new_drivers_list;
    1.98 +	unsigned long old_bit_2_of_cookie_snd;
    1.99 +	void (*stfa_it)(void);
   1.100 +} cookie_stfa_t __attribute__((packed));
   1.101 +
   1.102 +#endif /* _SDL_mintaudio_stfa_h */