comparison src/audio/SDL_sysaudio.h @ 2060:866052b01ee5

indent is evil
author Sam Lantinga <slouken@libsdl.org>
date Sat, 28 Oct 2006 16:48:03 +0000
parents 5f6550e5184f
children f39a056aec8b f8f68f47285a
comparison
equal deleted inserted replaced
2059:4685ccd33d0e 2060:866052b01ee5
31 typedef struct SDL_AudioDevice SDL_AudioDevice; 31 typedef struct SDL_AudioDevice SDL_AudioDevice;
32 #define _THIS SDL_AudioDevice *_this 32 #define _THIS SDL_AudioDevice *_this
33 33
34 typedef struct SDL_AudioDriverImpl 34 typedef struct SDL_AudioDriverImpl
35 { 35 {
36 int (*DetectDevices)(int iscapture); 36 int (*DetectDevices) (int iscapture);
37 const char *(*GetDeviceName)(int index, int iscapture); 37 const char *(*GetDeviceName) (int index, int iscapture);
38 int (*OpenDevice) (_THIS, const char *devname, int iscapture); 38 int (*OpenDevice) (_THIS, const char *devname, int iscapture);
39 void (*ThreadInit) (_THIS); /* Called by audio thread at start */ 39 void (*ThreadInit) (_THIS); /* Called by audio thread at start */
40 void (*WaitDevice) (_THIS); 40 void (*WaitDevice) (_THIS);
41 void (*PlayDevice) (_THIS); 41 void (*PlayDevice) (_THIS);
42 Uint8 *(*GetDeviceBuf) (_THIS); 42 Uint8 *(*GetDeviceBuf) (_THIS);
105 105
106 typedef struct AudioBootStrap 106 typedef struct AudioBootStrap
107 { 107 {
108 const char *name; 108 const char *name;
109 const char *desc; 109 const char *desc;
110 int (*init) (SDL_AudioDriverImpl *impl); 110 int (*init) (SDL_AudioDriverImpl * impl);
111 int demand_only:1; /* 1==request explicitly, or it won't be available. */ 111 int demand_only:1; /* 1==request explicitly, or it won't be available. */
112 } AudioBootStrap; 112 } AudioBootStrap;
113 113
114 #endif /* _SDL_sysaudio_h */ 114 #endif /* _SDL_sysaudio_h */
115 115
116 /* vi: set ts=4 sw=4 expandtab: */ 116 /* vi: set ts=4 sw=4 expandtab: */