src/audio/mint/SDL_mintaudio_mcsn.h
author Sam Lantinga
Sat, 19 Sep 2009 13:29:40 +0000
changeset 3280 00cace2d9080
parent 2859 99210400e8b9
permissions -rw-r--r--
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
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
	MCSN control structure
patmandin@644
    26
patmandin@644
    27
	Patrice Mandin
patmandin@644
    28
*/
patmandin@644
    29
patmandin@644
    30
#ifndef _SDL_mintaudio_mcsh_h
patmandin@644
    31
#define _SDL_mintaudio_mcsh_h
patmandin@644
    32
slouken@1895
    33
typedef struct
slouken@1895
    34
{
slouken@1895
    35
    unsigned short version;     /* Version */
slouken@1895
    36
    unsigned short size;        /* Size of structure */
patmandin@644
    37
slouken@1895
    38
    unsigned short play;        /* Replay capability */
slouken@1895
    39
    unsigned short record;      /* Record capability */
slouken@1895
    40
    unsigned short dsp;         /* DSP56K present */
slouken@1895
    41
    unsigned short pint;        /* Interrupt at end of replay */
slouken@1895
    42
    unsigned short rint;        /* Interrupt at end of record */
patmandin@644
    43
slouken@1895
    44
    unsigned long res1;         /* Frequency of external clock */
slouken@1895
    45
    unsigned long res2;
slouken@1895
    46
    unsigned long res3;
slouken@1895
    47
    unsigned long res4;
slouken@1895
    48
} cookie_mcsn_t __attribute__ ((packed));
patmandin@644
    49
slouken@1895
    50
enum
slouken@1895
    51
{
slouken@1895
    52
    MCSN_ST = 0,
slouken@1895
    53
    MCSN_TT,
slouken@1895
    54
    MCSN_STE = MCSN_TT,
slouken@1895
    55
    MCSN_FALCON,
slouken@1895
    56
    MCSN_MAC = MCSN_FALCON
patmandin@644
    57
};
patmandin@644
    58
slouken@1895
    59
#define SETSMPFREQ	7       /* Set sample frequency */
patmandin@644
    60
patmandin@644
    61
#endif /* _SDL_mintaudio_mcsh_h */
slouken@1895
    62
/* vi: set ts=4 sw=4 expandtab: */