src/audio/mint/SDL_mintaudio_stfa.h
author Sam Lantinga
Mon, 08 Dec 2008 00:27:32 +0000
changeset 2859 99210400e8b9
parent 1895 c121d94672cb
permissions -rw-r--r--
Updated copyright date
patmandin@644
     1
/*
patmandin@644
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     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
slouken@1895
    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
slouken@1895
    51
enum
slouken@1895
    52
{
slouken@1895
    53
    STFA_FORMAT_F4995 = 0,
slouken@1895
    54
    STFA_FORMAT_F6269,
slouken@1895
    55
    STFA_FORMAT_F7493,
slouken@1895
    56
    STFA_FORMAT_F8192,
patmandin@644
    57
slouken@1895
    58
    STFA_FORMAT_F9830,
slouken@1895
    59
    STFA_FORMAT_F10971,
slouken@1895
    60
    STFA_FORMAT_F12538,
slouken@1895
    61
    STFA_FORMAT_F14985,
patmandin@644
    62
slouken@1895
    63
    STFA_FORMAT_F16384,
slouken@1895
    64
    STFA_FORMAT_F19819,
slouken@1895
    65
    STFA_FORMAT_F21943,
slouken@1895
    66
    STFA_FORMAT_F24576,
patmandin@644
    67
slouken@1895
    68
    STFA_FORMAT_F30720,
slouken@1895
    69
    STFA_FORMAT_F32336,
slouken@1895
    70
    STFA_FORMAT_F43885,
slouken@1895
    71
    STFA_FORMAT_F49152
patmandin@644
    72
};
patmandin@644
    73
patmandin@644
    74
/*--- Types ---*/
patmandin@644
    75
slouken@1895
    76
typedef struct
slouken@1895
    77
{
slouken@1895
    78
    unsigned short sound_enable;
slouken@1895
    79
    unsigned short sound_control;
slouken@1895
    80
    unsigned short sound_output;
slouken@1895
    81
    unsigned long sound_start;
slouken@1895
    82
    unsigned long sound_current;
slouken@1895
    83
    unsigned long sound_end;
slouken@1895
    84
    unsigned short version;
slouken@1895
    85
    void *old_vbl;
slouken@1895
    86
    void *old_timera;
slouken@1895
    87
    unsigned long old_mfp_status;
slouken@1895
    88
    void *new_vbl;
slouken@1895
    89
    void *drivers_list;
slouken@1895
    90
    void *play_stop;
slouken@1895
    91
    unsigned short frequency;
slouken@1895
    92
    void *set_frequency;
slouken@1895
    93
slouken@1895
    94
    unsigned short frequency_threshold;
slouken@1895
    95
    unsigned short *custom_freq_table;
slouken@1895
    96
    unsigned short stfa_on_off;
slouken@1895
    97
    void *new_drivers_list;
slouken@1895
    98
    unsigned long old_bit_2_of_cookie_snd;
slouken@1895
    99
    void (*stfa_it) (void);
slouken@1895
   100
} cookie_stfa_t __attribute__ ((packed));
patmandin@644
   101
patmandin@644
   102
#endif /* _SDL_mintaudio_stfa_h */
slouken@1895
   103
/* vi: set ts=4 sw=4 expandtab: */