src/audio/macosx/SDL_coreaudio.h
author Sam Lantinga
Tue, 21 Feb 2006 08:46:50 +0000
changeset 1402 d910939febfa
parent 1361 19418e4422cb
child 1662 782fd950bd46
child 4159 a1b03ba2fcd0
permissions -rw-r--r--
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
slouken@935
     1
/*
slouken@935
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@935
     4
slouken@935
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@935
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@935
     9
slouken@935
    10
    This library is distributed in the hope that it will be useful,
slouken@935
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@935
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@935
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@935
    18
slouken@935
    19
    Sam Lantinga
slouken@935
    20
    slouken@libsdl.org
slouken@935
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@935
    23
slouken@935
    24
#ifndef _SDL_coreaudio_h
slouken@935
    25
#define _SDL_coreaudio_h
slouken@935
    26
slouken@1361
    27
#include "../SDL_sysaudio.h"
slouken@935
    28
slouken@935
    29
/* Hidden "this" pointer for the video functions */
slouken@935
    30
#define _THIS	SDL_AudioDevice *this
slouken@935
    31
slouken@935
    32
struct SDL_PrivateAudioData {
slouken@935
    33
	AudioUnit outputAudioUnit;
slouken@935
    34
	void *buffer;
slouken@935
    35
	UInt32 bufferOffset;
slouken@935
    36
	UInt32 bufferSize;
slouken@935
    37
};
slouken@935
    38
slouken@935
    39
/* Old variable names */
slouken@935
    40
#define outputAudioUnit		(this->hidden->outputAudioUnit)
slouken@935
    41
#define buffer		(this->hidden->buffer)
slouken@935
    42
#define bufferOffset		(this->hidden->bufferOffset)
slouken@935
    43
#define bufferSize		(this->hidden->bufferSize)
slouken@935
    44
slouken@935
    45
#endif /* _SDL_coreaudio_h */