src/audio/dummy/SDL_dummyaudio.h
author Ryan C. Gordon
Tue, 14 Mar 2006 08:53:33 +0000
changeset 1532 30f189cdd82b
child 1537 60620d71e324
permissions -rw-r--r--
Implemented dummy audio driver.

Fixes Bugzilla #161.
icculus@1532
     1
/*
icculus@1532
     2
    SDL - Simple DirectMedia Layer
icculus@1532
     3
    Copyright (C) 1997-2006 Sam Lantinga
icculus@1532
     4
icculus@1532
     5
    This library is free software; you can redistribute it and/or
icculus@1532
     6
    modify it under the terms of the GNU Lesser General Public
icculus@1532
     7
    License as published by the Free Software Foundation; either
icculus@1532
     8
    version 2.1 of the License, or (at your option) any later version.
icculus@1532
     9
icculus@1532
    10
    This library is distributed in the hope that it will be useful,
icculus@1532
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
icculus@1532
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
icculus@1532
    13
    Lesser General Public License for more details.
icculus@1532
    14
icculus@1532
    15
    You should have received a copy of the GNU Lesser General Public
icculus@1532
    16
    License along with this library; if not, write to the Free Software
icculus@1532
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
icculus@1532
    18
icculus@1532
    19
    Sam Lantinga
icculus@1532
    20
    slouken@libsdl.org
icculus@1532
    21
*/
icculus@1532
    22
#include "SDL_config.h"
icculus@1532
    23
icculus@1532
    24
#ifndef _SDL_dummyaudio_h
icculus@1532
    25
#define _SDL_dummyaudio_h
icculus@1532
    26
icculus@1532
    27
#include "../SDL_sysaudio.h"
icculus@1532
    28
icculus@1532
    29
/* Hidden "this" pointer for the video functions */
icculus@1532
    30
#define _THIS	SDL_AudioDevice *this
icculus@1532
    31
icculus@1532
    32
struct SDL_PrivateAudioData {
icculus@1532
    33
	/* The file descriptor for the audio device */
icculus@1532
    34
	Uint8 *mixbuf;
icculus@1532
    35
	Uint32 mixlen;
icculus@1532
    36
	Uint32 write_delay;
icculus@1532
    37
};
icculus@1532
    38
icculus@1532
    39
#endif /* _SDL_dummyaudio_h */