src/audio/mme/SDL_mmeaudio.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 18:39:57 +0000
changeset 3227 458e53d8662c
parent 2859 99210400e8b9
child 3697 f7b03b6838cb
permissions -rw-r--r--
Clarified API documentation
slouken@654
     1
/*
slouken@654
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@654
     4
slouken@654
     5
    This library is free software; you can redistribute it and/or
slouken@654
     6
    modify it under the terms of the GNU Library General Public
slouken@654
     7
    License as published by the Free Software Foundation; either
slouken@654
     8
    version 2 of the License, or (at your option) any later version.
slouken@654
     9
slouken@654
    10
    This library is distributed in the hope that it will be useful,
slouken@654
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@654
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@654
    13
    Library General Public License for more details.
slouken@654
    14
slouken@654
    15
    You should have received a copy of the GNU Library General Public
slouken@654
    16
    License along with this library; if not, write to the Free
slouken@654
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@654
    18
slouken@654
    19
    Sam Lantinga
slouken@654
    20
    slouken@libsdl.org
slouken@654
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@654
    23
slouken@654
    24
/* Allow access to a raw mixing buffer */
slouken@654
    25
icculus@2049
    26
#ifndef _SDL_mmeaudio_h
icculus@2049
    27
#define _SDL_mmeaudio_h
slouken@1361
    28
slouken@1361
    29
#include "../SDL_sysaudio.h"
slouken@654
    30
icculus@2049
    31
/* Hidden "this" pointer for the audio functions */
slouken@654
    32
#define _THIS	SDL_AudioDevice *this
slouken@654
    33
#define NUM_BUFFERS 2
slouken@654
    34
slouken@1895
    35
struct SharedMem
slouken@1895
    36
{
slouken@654
    37
    HWAVEOUT sound;
slouken@654
    38
    WAVEHDR wHdr[NUM_BUFFERS];
slouken@654
    39
    PCMWAVEFORMAT wFmt;
slouken@654
    40
};
slouken@654
    41
slouken@1895
    42
struct SDL_PrivateAudioData
slouken@1895
    43
{
slouken@1895
    44
    Uint8 *mixbuf;              /* The raw allocated mixing buffer */
slouken@654
    45
    struct SharedMem *shm;
slouken@654
    46
    int next_buffer;
slouken@654
    47
};
slouken@654
    48
icculus@2049
    49
#endif /* _SDL_mmeaudio_h */
icculus@2049
    50
slouken@1895
    51
/* vi: set ts=4 sw=4 expandtab: */