src/audio/mint/SDL_mintaudio_mcsn.h
author Patrice Mandin <patmandin@gmail.com>
Mon, 07 Jul 2003 19:16:03 +0000
changeset 644 594422ab8f9f
child 769 b8d311d90021
permissions -rw-r--r--
Atari MiNT: added more audio drivers
patmandin@644
     1
/*
patmandin@644
     2
    SDL - Simple DirectMedia Layer
patmandin@644
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002  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
	MCSN control structure
patmandin@644
    25
patmandin@644
    26
	Patrice Mandin
patmandin@644
    27
*/
patmandin@644
    28
patmandin@644
    29
#ifndef _SDL_mintaudio_mcsh_h
patmandin@644
    30
#define _SDL_mintaudio_mcsh_h
patmandin@644
    31
patmandin@644
    32
typedef struct {
patmandin@644
    33
	unsigned short version;	/* Version */
patmandin@644
    34
	unsigned short size;	/* Size of structure */
patmandin@644
    35
patmandin@644
    36
	unsigned short play;	/* Replay capability */
patmandin@644
    37
	unsigned short record;	/* Record capability */
patmandin@644
    38
	unsigned short dsp;		/* DSP56K present */
patmandin@644
    39
	unsigned short pint;	/* Interrupt at end of replay */
patmandin@644
    40
	unsigned short rint;	/* Interrupt at end of record */
patmandin@644
    41
patmandin@644
    42
	unsigned long res1;		/* Frequency of external clock */
patmandin@644
    43
	unsigned long res2;
patmandin@644
    44
	unsigned long res3;
patmandin@644
    45
	unsigned long res4;
patmandin@644
    46
} cookie_mcsn_t __attribute__((packed));
patmandin@644
    47
patmandin@644
    48
enum {
patmandin@644
    49
	MCSN_ST=0,
patmandin@644
    50
	MCSN_TT,
patmandin@644
    51
	MCSN_STE=MCSN_TT,
patmandin@644
    52
	MCSN_FALCON,
patmandin@644
    53
	MCSN_MAC=MCSN_FALCON
patmandin@644
    54
};
patmandin@644
    55
patmandin@644
    56
#define SETSMPFREQ	7	/* Set sample frequency */
patmandin@644
    57
patmandin@644
    58
#endif /* _SDL_mintaudio_mcsh_h */