Home | History | Annotate | Download | only in amigaos
      1 /*
      2     SDL - Simple DirectMedia Layer
      3     Copyright (C) 1997-2006 Sam Lantinga
      4 
      5     This library is free software; you can redistribute it and/or
      6     modify it under the terms of the GNU Lesser General Public
      7     License as published by the Free Software Foundation; either
      8     version 2.1 of the License, or (at your option) any later version.
      9 
     10     This library is distributed in the hope that it will be useful,
     11     but WITHOUT ANY WARRANTY; without even the implied warranty of
     12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13     Lesser General Public License for more details.
     14 
     15     You should have received a copy of the GNU Lesser General Public
     16     License along with this library; if not, write to the Free Software
     17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     18 
     19     Sam Lantinga
     20     slouken (at) libsdl.org
     21 */
     22 #include "SDL_config.h"
     23 
     24 #ifndef _SDL_ahiaudio_h
     25 #define _SDL_ahiaudio_h
     26 
     27 #include <exec/exec.h>
     28 #include <dos/dos.h>
     29 #ifdef __SASC
     30 #include <proto/exec.h>
     31 #else
     32 #include <inline/exec.h>
     33 #endif
     34 
     35 #include <devices/ahi.h>
     36 #include "mydebug.h"
     37 
     38 #include "../SDL_sysaudio.h"
     39 
     40 /* Hidden "this" pointer for the audio functions */
     41 #define _THIS	SDL_AudioDevice *this
     42 
     43 struct SDL_PrivateAudioData {
     44 	/* The handle for the audio device */
     45 	struct AHIRequest *audio_req[2];
     46 	struct MsgPort *audio_port;
     47 	Sint32 freq,type,bytespersample,size;
     48 	Uint8 *mixbuf[2];           /* The app mixing buffer */
     49 	int current_buffer;
     50 	Uint32 playing;
     51 };
     52 
     53 /* Old variable names */
     54 #define audio_port		(this->hidden->audio_port)
     55 #define audio_req		(this->hidden->audio_req)
     56 #define mixbuf			(this->hidden->mixbuf)
     57 #define current_buffer		(this->hidden->current_buffer)
     58 #define playing			(this->hidden->playing)
     59 
     60 #endif /* _SDL_ahiaudio_h */
     61