src/audio/amigaos/SDL_ahiaudio.h
author Sam Lantinga <slouken@lokigames.com>
Thu, 10 May 2001 20:13:29 +0000
changeset 21 75a95f82bc1f
child 252 e8157fcb3114
permissions -rw-r--r--
Updated the Amiga OS port of SDL (thanks Gabriele)
slouken@21
     1
/*
slouken@21
     2
    SDL - Simple DirectMedia Layer
slouken@21
     3
    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
slouken@21
     4
slouken@21
     5
    This library is free software; you can redistribute it and/or
slouken@21
     6
    modify it under the terms of the GNU Library General Public
slouken@21
     7
    License as published by the Free Software Foundation; either
slouken@21
     8
    version 2 of the License, or (at your option) any later version.
slouken@21
     9
slouken@21
    10
    This library is distributed in the hope that it will be useful,
slouken@21
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@21
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@21
    13
    Library General Public License for more details.
slouken@21
    14
slouken@21
    15
    You should have received a copy of the GNU Library General Public
slouken@21
    16
    License along with this library; if not, write to the Free
slouken@21
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@21
    18
slouken@21
    19
    Sam Lantinga
slouken@21
    20
    slouken@devolution.com
slouken@21
    21
*/
slouken@21
    22
slouken@21
    23
#ifdef SAVE_RCSID
slouken@21
    24
static char rcsid =
slouken@21
    25
 "@(#) $Id$";
slouken@21
    26
#endif
slouken@21
    27
slouken@21
    28
#ifndef _SDL_ahiaudio_h
slouken@21
    29
#define _SDL_ahiaudio_h
slouken@21
    30
slouken@21
    31
#include <exec/exec.h>
slouken@21
    32
#include <dos/dos.h>
slouken@21
    33
#ifdef __SASC
slouken@21
    34
#include <proto/exec.h>
slouken@21
    35
#else
slouken@21
    36
#include <inline/exec.h>
slouken@21
    37
#endif
slouken@21
    38
slouken@21
    39
#include <devices/ahi.h>
slouken@21
    40
#include "mydebug.h"
slouken@21
    41
#include "SDL_sysaudio.h"
slouken@21
    42
slouken@21
    43
/* Hidden "this" pointer for the audio functions */
slouken@21
    44
#define _THIS	SDL_AudioDevice *this
slouken@21
    45
slouken@21
    46
struct SDL_PrivateAudioData {
slouken@21
    47
	/* The handle for the audio device */
slouken@21
    48
	struct AHIRequest *audio_req[2];
slouken@21
    49
	struct MsgPort *audio_port;
slouken@21
    50
	Sint32 freq,type,bytespersample;
slouken@21
    51
	Uint8 *mixbuf[2];           /* The app mixing buffer */
slouken@21
    52
	int current_buffer;
slouken@21
    53
	Uint32 playing;
slouken@21
    54
};
slouken@21
    55
slouken@21
    56
/* Old variable names */
slouken@21
    57
#define audio_port		(this->hidden->audio_port)
slouken@21
    58
#define audio_req		(this->hidden->audio_req)
slouken@21
    59
#define mixbuf			(this->hidden->mixbuf)
slouken@21
    60
#define current_buffer		(this->hidden->current_buffer)
slouken@21
    61
#define playing			(this->hidden->playing)
slouken@21
    62
slouken@21
    63
#endif /* _SDL_ahiaudio_h */