src/audio/mint/SDL_mintaudio_stfa.h
author Patrice Mandin
Sun, 28 Aug 2011 19:19:03 +0200
branchSDL-1.2
changeset 5654 06067f7eadfa
parent 4159 a1b03ba2fcd0
child 5854 143d7c02d626
permissions -rw-r--r--
Remove more values now defined in mintlib
patmandin@644
     1
/*
patmandin@644
     2
    SDL - Simple DirectMedia Layer
slouken@4159
     3
    Copyright (C) 1997-2009 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 STFA_PLAY_ENABLE	(1<<0)
patmandin@644
    36
#define STFA_PLAY_DISABLE	(0<<0)
patmandin@644
    37
#define STFA_PLAY_REPEAT	(1<<1)
patmandin@644
    38
#define STFA_PLAY_SINGLE	(0<<1)
patmandin@644
    39
patmandin@644
    40
#define STFA_FORMAT_SIGNED		(1<<15)
patmandin@644
    41
#define STFA_FORMAT_UNSIGNED	(0<<15)
patmandin@644
    42
#define STFA_FORMAT_STEREO		(1<<14)
patmandin@644
    43
#define STFA_FORMAT_MONO		(0<<14)
patmandin@644
    44
#define STFA_FORMAT_16BIT		(1<<13)
patmandin@644
    45
#define STFA_FORMAT_8BIT		(0<<13)
patmandin@644
    46
#define STFA_FORMAT_LITENDIAN	(1<<9)
patmandin@644
    47
#define STFA_FORMAT_BIGENDIAN	(0<<9)
patmandin@644
    48
#define STFA_FORMAT_FREQ_MASK	0x0f
patmandin@644
    49
enum {
patmandin@644
    50
	STFA_FORMAT_F4995=0,
patmandin@644
    51
	STFA_FORMAT_F6269,
patmandin@644
    52
	STFA_FORMAT_F7493,
patmandin@644
    53
	STFA_FORMAT_F8192,
patmandin@644
    54
patmandin@644
    55
	STFA_FORMAT_F9830,
patmandin@644
    56
	STFA_FORMAT_F10971,
patmandin@644
    57
	STFA_FORMAT_F12538,
patmandin@644
    58
	STFA_FORMAT_F14985,
patmandin@644
    59
patmandin@644
    60
	STFA_FORMAT_F16384,
patmandin@644
    61
	STFA_FORMAT_F19819,
patmandin@644
    62
	STFA_FORMAT_F21943,
patmandin@644
    63
	STFA_FORMAT_F24576,
patmandin@644
    64
patmandin@644
    65
	STFA_FORMAT_F30720,
patmandin@644
    66
	STFA_FORMAT_F32336,
patmandin@644
    67
	STFA_FORMAT_F43885,
patmandin@644
    68
	STFA_FORMAT_F49152
patmandin@644
    69
};
patmandin@644
    70
patmandin@644
    71
/*--- Types ---*/
patmandin@644
    72
patmandin@644
    73
typedef struct {
patmandin@644
    74
	unsigned short sound_enable;
patmandin@644
    75
	unsigned short sound_control;
patmandin@644
    76
	unsigned short sound_output;
patmandin@644
    77
	unsigned long sound_start;
patmandin@644
    78
	unsigned long sound_current;
patmandin@644
    79
	unsigned long sound_end;
patmandin@644
    80
	unsigned short version;
patmandin@644
    81
	void *old_vbl;
patmandin@644
    82
	void *old_timera;
patmandin@644
    83
	unsigned long old_mfp_status;
patmandin@644
    84
	void *new_vbl;
patmandin@644
    85
	void *drivers_list;
patmandin@644
    86
	void *play_stop;
patmandin@644
    87
	unsigned short frequency;
patmandin@644
    88
	void *set_frequency;
patmandin@644
    89
	
patmandin@644
    90
	unsigned short frequency_threshold;
patmandin@644
    91
	unsigned short *custom_freq_table;
patmandin@644
    92
	unsigned short stfa_on_off;
patmandin@644
    93
	void *new_drivers_list;
patmandin@644
    94
	unsigned long old_bit_2_of_cookie_snd;
patmandin@644
    95
	void (*stfa_it)(void);
patmandin@644
    96
} cookie_stfa_t __attribute__((packed));
patmandin@644
    97
patmandin@644
    98
#endif /* _SDL_mintaudio_stfa_h */