src/audio/mint/SDL_mintaudio_stfa.h
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1402 d910939febfa
child 2859 99210400e8b9
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
    30 #ifndef _SDL_mintaudio_stfa_h
    30 #ifndef _SDL_mintaudio_stfa_h
    31 #define _SDL_mintaudio_stfa_h
    31 #define _SDL_mintaudio_stfa_h
    32 
    32 
    33 /*--- Defines ---*/
    33 /*--- Defines ---*/
    34 
    34 
    35 #define C_STFA	0x53544641L	/* Sound treiber für atari (seb/The removers) */
    35 #define C_STFA	0x53544641L     /* Sound treiber für atari (seb/The removers) */
    36 
    36 
    37 #define STFA_PLAY_ENABLE	(1<<0)
    37 #define STFA_PLAY_ENABLE	(1<<0)
    38 #define STFA_PLAY_DISABLE	(0<<0)
    38 #define STFA_PLAY_DISABLE	(0<<0)
    39 #define STFA_PLAY_REPEAT	(1<<1)
    39 #define STFA_PLAY_REPEAT	(1<<1)
    40 #define STFA_PLAY_SINGLE	(0<<1)
    40 #define STFA_PLAY_SINGLE	(0<<1)
    46 #define STFA_FORMAT_16BIT		(1<<13)
    46 #define STFA_FORMAT_16BIT		(1<<13)
    47 #define STFA_FORMAT_8BIT		(0<<13)
    47 #define STFA_FORMAT_8BIT		(0<<13)
    48 #define STFA_FORMAT_LITENDIAN	(1<<9)
    48 #define STFA_FORMAT_LITENDIAN	(1<<9)
    49 #define STFA_FORMAT_BIGENDIAN	(0<<9)
    49 #define STFA_FORMAT_BIGENDIAN	(0<<9)
    50 #define STFA_FORMAT_FREQ_MASK	0x0f
    50 #define STFA_FORMAT_FREQ_MASK	0x0f
    51 enum {
    51 enum
    52 	STFA_FORMAT_F4995=0,
    52 {
    53 	STFA_FORMAT_F6269,
    53     STFA_FORMAT_F4995 = 0,
    54 	STFA_FORMAT_F7493,
    54     STFA_FORMAT_F6269,
    55 	STFA_FORMAT_F8192,
    55     STFA_FORMAT_F7493,
       
    56     STFA_FORMAT_F8192,
    56 
    57 
    57 	STFA_FORMAT_F9830,
    58     STFA_FORMAT_F9830,
    58 	STFA_FORMAT_F10971,
    59     STFA_FORMAT_F10971,
    59 	STFA_FORMAT_F12538,
    60     STFA_FORMAT_F12538,
    60 	STFA_FORMAT_F14985,
    61     STFA_FORMAT_F14985,
    61 
    62 
    62 	STFA_FORMAT_F16384,
    63     STFA_FORMAT_F16384,
    63 	STFA_FORMAT_F19819,
    64     STFA_FORMAT_F19819,
    64 	STFA_FORMAT_F21943,
    65     STFA_FORMAT_F21943,
    65 	STFA_FORMAT_F24576,
    66     STFA_FORMAT_F24576,
    66 
    67 
    67 	STFA_FORMAT_F30720,
    68     STFA_FORMAT_F30720,
    68 	STFA_FORMAT_F32336,
    69     STFA_FORMAT_F32336,
    69 	STFA_FORMAT_F43885,
    70     STFA_FORMAT_F43885,
    70 	STFA_FORMAT_F49152
    71     STFA_FORMAT_F49152
    71 };
    72 };
    72 
    73 
    73 /*--- Types ---*/
    74 /*--- Types ---*/
    74 
    75 
    75 typedef struct {
    76 typedef struct
    76 	unsigned short sound_enable;
    77 {
    77 	unsigned short sound_control;
    78     unsigned short sound_enable;
    78 	unsigned short sound_output;
    79     unsigned short sound_control;
    79 	unsigned long sound_start;
    80     unsigned short sound_output;
    80 	unsigned long sound_current;
    81     unsigned long sound_start;
    81 	unsigned long sound_end;
    82     unsigned long sound_current;
    82 	unsigned short version;
    83     unsigned long sound_end;
    83 	void *old_vbl;
    84     unsigned short version;
    84 	void *old_timera;
    85     void *old_vbl;
    85 	unsigned long old_mfp_status;
    86     void *old_timera;
    86 	void *new_vbl;
    87     unsigned long old_mfp_status;
    87 	void *drivers_list;
    88     void *new_vbl;
    88 	void *play_stop;
    89     void *drivers_list;
    89 	unsigned short frequency;
    90     void *play_stop;
    90 	void *set_frequency;
    91     unsigned short frequency;
    91 	
    92     void *set_frequency;
    92 	unsigned short frequency_threshold;
    93 
    93 	unsigned short *custom_freq_table;
    94     unsigned short frequency_threshold;
    94 	unsigned short stfa_on_off;
    95     unsigned short *custom_freq_table;
    95 	void *new_drivers_list;
    96     unsigned short stfa_on_off;
    96 	unsigned long old_bit_2_of_cookie_snd;
    97     void *new_drivers_list;
    97 	void (*stfa_it)(void);
    98     unsigned long old_bit_2_of_cookie_snd;
    98 } cookie_stfa_t __attribute__((packed));
    99     void (*stfa_it) (void);
       
   100 } cookie_stfa_t __attribute__ ((packed));
    99 
   101 
   100 #endif /* _SDL_mintaudio_stfa_h */
   102 #endif /* _SDL_mintaudio_stfa_h */
       
   103 /* vi: set ts=4 sw=4 expandtab: */