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