comparison src/audio/macrom/SDL_romaudio.c @ 2060:866052b01ee5

indent is evil
author Sam Lantinga <slouken@libsdl.org>
date Sat, 28 Oct 2006 16:48:03 +0000
parents d22372343744
children 79c1bd651f04
comparison
equal deleted inserted replaced
2059:4685ccd33d0e 2060:866052b01ee5
188 int i; 188 int i;
189 long initOptions; 189 long initOptions;
190 190
191 /* Initialize all variables that we clean on shutdown */ 191 /* Initialize all variables that we clean on shutdown */
192 this->hidden = (struct SDL_PrivateAudioData *) 192 this->hidden = (struct SDL_PrivateAudioData *)
193 SDL_malloc((sizeof *this->hidden)); 193 SDL_malloc((sizeof *this->hidden));
194 if (this->hidden == NULL) { 194 if (this->hidden == NULL) {
195 SDL_OutOfMemory(); 195 SDL_OutOfMemory();
196 return 0; 196 return 0;
197 } 197 }
198 SDL_memset(this->hidden, 0, (sizeof *this->hidden)); 198 SDL_memset(this->hidden, 0, (sizeof *this->hidden));
290 290
291 return 1; 291 return 1;
292 } 292 }
293 293
294 static int 294 static int
295 SNDMGR_Init(SDL_AudioDriverImpl *impl) 295 SNDMGR_Init(SDL_AudioDriverImpl * impl)
296 { 296 {
297 /* Set the function pointers */ 297 /* Set the function pointers */
298 impl->OpenDevice = SNDMGR_OpenDevice; 298 impl->OpenDevice = SNDMGR_OpenDevice;
299 impl->CloseDevice = SNDMGR_CloseDevice; 299 impl->CloseDevice = SNDMGR_CloseDevice;
300 impl->ProvidesOwnCallbackThread = 1; 300 impl->ProvidesOwnCallbackThread = 1;