src/audio/mint/SDL_mintaudio_stfa.h
changeset 644 594422ab8f9f
child 769 b8d311d90021
equal deleted inserted replaced
643:564716cfb502 644:594422ab8f9f
       
     1 /*
       
     2     SDL - Simple DirectMedia Layer
       
     3     Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  Sam Lantinga
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 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     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public
       
    16     License along with this library; if not, write to the Free
       
    17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    18 
       
    19     Sam Lantinga
       
    20     slouken@libsdl.org
       
    21 */
       
    22 
       
    23 /*
       
    24 	STFA control structure
       
    25 
       
    26 	Patrice Mandin
       
    27 */
       
    28 
       
    29 #ifndef _SDL_mintaudio_stfa_h
       
    30 #define _SDL_mintaudio_stfa_h
       
    31 
       
    32 /*--- Defines ---*/
       
    33 
       
    34 #define C_STFA	0x53544641L	/* Sound treiber für atari (seb/The removers) */
       
    35 
       
    36 #define STFA_PLAY_ENABLE	(1<<0)
       
    37 #define STFA_PLAY_DISABLE	(0<<0)
       
    38 #define STFA_PLAY_REPEAT	(1<<1)
       
    39 #define STFA_PLAY_SINGLE	(0<<1)
       
    40 
       
    41 #define STFA_FORMAT_SIGNED		(1<<15)
       
    42 #define STFA_FORMAT_UNSIGNED	(0<<15)
       
    43 #define STFA_FORMAT_STEREO		(1<<14)
       
    44 #define STFA_FORMAT_MONO		(0<<14)
       
    45 #define STFA_FORMAT_16BIT		(1<<13)
       
    46 #define STFA_FORMAT_8BIT		(0<<13)
       
    47 #define STFA_FORMAT_LITENDIAN	(1<<9)
       
    48 #define STFA_FORMAT_BIGENDIAN	(0<<9)
       
    49 #define STFA_FORMAT_FREQ_MASK	0x0f
       
    50 enum {
       
    51 	STFA_FORMAT_F4995=0,
       
    52 	STFA_FORMAT_F6269,
       
    53 	STFA_FORMAT_F7493,
       
    54 	STFA_FORMAT_F8192,
       
    55 
       
    56 	STFA_FORMAT_F9830,
       
    57 	STFA_FORMAT_F10971,
       
    58 	STFA_FORMAT_F12538,
       
    59 	STFA_FORMAT_F14985,
       
    60 
       
    61 	STFA_FORMAT_F16384,
       
    62 	STFA_FORMAT_F19819,
       
    63 	STFA_FORMAT_F21943,
       
    64 	STFA_FORMAT_F24576,
       
    65 
       
    66 	STFA_FORMAT_F30720,
       
    67 	STFA_FORMAT_F32336,
       
    68 	STFA_FORMAT_F43885,
       
    69 	STFA_FORMAT_F49152
       
    70 };
       
    71 
       
    72 /*--- Types ---*/
       
    73 
       
    74 typedef struct {
       
    75 	unsigned short sound_enable;
       
    76 	unsigned short sound_control;
       
    77 	unsigned short sound_output;
       
    78 	unsigned long sound_start;
       
    79 	unsigned long sound_current;
       
    80 	unsigned long sound_end;
       
    81 	unsigned short version;
       
    82 	void *old_vbl;
       
    83 	void *old_timera;
       
    84 	unsigned long old_mfp_status;
       
    85 	void *new_vbl;
       
    86 	void *drivers_list;
       
    87 	void *play_stop;
       
    88 	unsigned short frequency;
       
    89 	void *set_frequency;
       
    90 	
       
    91 	unsigned short frequency_threshold;
       
    92 	unsigned short *custom_freq_table;
       
    93 	unsigned short stfa_on_off;
       
    94 	void *new_drivers_list;
       
    95 	unsigned long old_bit_2_of_cookie_snd;
       
    96 	void (*stfa_it)(void);
       
    97 } cookie_stfa_t __attribute__((packed));
       
    98 
       
    99 #endif /* _SDL_mintaudio_stfa_h */