src/audio/macosx/SDL_coreaudio.h
author Sam Lantinga
Mon, 10 Jul 2006 21:04:37 +0000
changeset 1895 c121d94672cb
parent 1402 d910939febfa
child 2049 5f6550e5184f
child 3784 37c9c4590689
permissions -rw-r--r--
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
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@1895
    32
struct SDL_PrivateAudioData
slouken@1895
    33
{
slouken@1895
    34
    AudioUnit outputAudioUnit;
slouken@1895
    35
    void *buffer;
slouken@1895
    36
    UInt32 bufferOffset;
slouken@1895
    37
    UInt32 bufferSize;
slouken@935
    38
};
slouken@935
    39
slouken@935
    40
/* Old variable names */
slouken@935
    41
#define outputAudioUnit		(this->hidden->outputAudioUnit)
slouken@935
    42
#define buffer		(this->hidden->buffer)
slouken@935
    43
#define bufferOffset		(this->hidden->bufferOffset)
slouken@935
    44
#define bufferSize		(this->hidden->bufferSize)
slouken@935
    45
slouken@935
    46
#endif /* _SDL_coreaudio_h */
slouken@1895
    47
/* vi: set ts=4 sw=4 expandtab: */