src/audio/mint/SDL_mintaudio_stfa.h
author Sam Lantinga
Tue, 21 Feb 2006 08:46:50 +0000
changeset 1402 d910939febfa
parent 769 b8d311d90021
child 1662 782fd950bd46
child 4159 a1b03ba2fcd0
permissions -rw-r--r--
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
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
*/
slouken@1402
    22
#include "SDL_config.h"
patmandin@644
    23
patmandin@644
    24
/*
patmandin@644
    25
	STFA control structure
patmandin@644
    26
patmandin@644
    27
	Patrice Mandin
patmandin@644
    28
*/
patmandin@644
    29
patmandin@644
    30
#ifndef _SDL_mintaudio_stfa_h
patmandin@644
    31
#define _SDL_mintaudio_stfa_h
patmandin@644
    32
patmandin@644
    33
/*--- Defines ---*/
patmandin@644
    34
patmandin@644
    35
#define C_STFA	0x53544641L	/* Sound treiber für atari (seb/The removers) */
patmandin@644
    36
patmandin@644
    37
#define STFA_PLAY_ENABLE	(1<<0)
patmandin@644
    38
#define STFA_PLAY_DISABLE	(0<<0)
patmandin@644
    39
#define STFA_PLAY_REPEAT	(1<<1)
patmandin@644
    40
#define STFA_PLAY_SINGLE	(0<<1)
patmandin@644
    41
patmandin@644
    42
#define STFA_FORMAT_SIGNED		(1<<15)
patmandin@644
    43
#define STFA_FORMAT_UNSIGNED	(0<<15)
patmandin@644
    44
#define STFA_FORMAT_STEREO		(1<<14)
patmandin@644
    45
#define STFA_FORMAT_MONO		(0<<14)
patmandin@644
    46
#define STFA_FORMAT_16BIT		(1<<13)
patmandin@644
    47
#define STFA_FORMAT_8BIT		(0<<13)
patmandin@644
    48
#define STFA_FORMAT_LITENDIAN	(1<<9)
patmandin@644
    49
#define STFA_FORMAT_BIGENDIAN	(0<<9)
patmandin@644
    50
#define STFA_FORMAT_FREQ_MASK	0x0f
patmandin@644
    51
enum {
patmandin@644
    52
	STFA_FORMAT_F4995=0,
patmandin@644
    53
	STFA_FORMAT_F6269,
patmandin@644
    54
	STFA_FORMAT_F7493,
patmandin@644
    55
	STFA_FORMAT_F8192,
patmandin@644
    56
patmandin@644
    57
	STFA_FORMAT_F9830,
patmandin@644
    58
	STFA_FORMAT_F10971,
patmandin@644
    59
	STFA_FORMAT_F12538,
patmandin@644
    60
	STFA_FORMAT_F14985,
patmandin@644
    61
patmandin@644
    62
	STFA_FORMAT_F16384,
patmandin@644
    63
	STFA_FORMAT_F19819,
patmandin@644
    64
	STFA_FORMAT_F21943,
patmandin@644
    65
	STFA_FORMAT_F24576,
patmandin@644
    66
patmandin@644
    67
	STFA_FORMAT_F30720,
patmandin@644
    68
	STFA_FORMAT_F32336,
patmandin@644
    69
	STFA_FORMAT_F43885,
patmandin@644
    70
	STFA_FORMAT_F49152
patmandin@644
    71
};
patmandin@644
    72
patmandin@644
    73
/*--- Types ---*/
patmandin@644
    74
patmandin@644
    75
typedef struct {
patmandin@644
    76
	unsigned short sound_enable;
patmandin@644
    77
	unsigned short sound_control;
patmandin@644
    78
	unsigned short sound_output;
patmandin@644
    79
	unsigned long sound_start;
patmandin@644
    80
	unsigned long sound_current;
patmandin@644
    81
	unsigned long sound_end;
patmandin@644
    82
	unsigned short version;
patmandin@644
    83
	void *old_vbl;
patmandin@644
    84
	void *old_timera;
patmandin@644
    85
	unsigned long old_mfp_status;
patmandin@644
    86
	void *new_vbl;
patmandin@644
    87
	void *drivers_list;
patmandin@644
    88
	void *play_stop;
patmandin@644
    89
	unsigned short frequency;
patmandin@644
    90
	void *set_frequency;
patmandin@644
    91
	
patmandin@644
    92
	unsigned short frequency_threshold;
patmandin@644
    93
	unsigned short *custom_freq_table;
patmandin@644
    94
	unsigned short stfa_on_off;
patmandin@644
    95
	void *new_drivers_list;
patmandin@644
    96
	unsigned long old_bit_2_of_cookie_snd;
patmandin@644
    97
	void (*stfa_it)(void);
patmandin@644
    98
} cookie_stfa_t __attribute__((packed));
patmandin@644
    99
patmandin@644
   100
#endif /* _SDL_mintaudio_stfa_h */