comparison src/audio/SDL_sysaudio.h @ 3790:8f8209f8da6d SDL-ryan-multiple-audio-device

Added audio device enumeration for 1.3.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 03 Oct 2006 20:07:50 +0000
parents 8d74a4721ca9
children 866c310e2cb5
comparison
equal deleted inserted replaced
3789:e2f68b579a01 3790:8f8209f8da6d
32 #define _THIS SDL_AudioDevice *_this 32 #define _THIS SDL_AudioDevice *_this
33 33
34 /* !!! FIXME: rename these from "Audio" to "Device" ... */ 34 /* !!! FIXME: rename these from "Audio" to "Device" ... */
35 typedef struct SDL_AudioDriverImpl 35 typedef struct SDL_AudioDriverImpl
36 { 36 {
37 int (*DetectDevices)(int iscapture);
38 const char *(*GetAudioDevice)(int index, int iscapture);
37 int (*OpenAudio) (_THIS, const char *devname, int iscapture); 39 int (*OpenAudio) (_THIS, const char *devname, int iscapture);
38 void (*ThreadInit) (_THIS); /* Called by audio thread at start */ 40 void (*ThreadInit) (_THIS); /* Called by audio thread at start */
39 void (*WaitAudio) (_THIS); 41 void (*WaitAudio) (_THIS);
40 void (*PlayAudio) (_THIS); 42 void (*PlayAudio) (_THIS);
41 Uint8 *(*GetAudioBuf) (_THIS); 43 Uint8 *(*GetAudioBuf) (_THIS);