Mercurial > sdl-ios-xcode
comparison src/audio/dc/SDL_dcaudio.c @ 2060:866052b01ee5
indent is evil
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 28 Oct 2006 16:48:03 +0000 |
parents | 5f6550e5184f |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2059:4685ccd33d0e | 2060:866052b01ee5 |
---|---|
168 SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format); | 168 SDL_AudioFormat test_format = SDL_FirstAudioFormat(spec->format); |
169 int valid_datatype = 0; | 169 int valid_datatype = 0; |
170 | 170 |
171 /* Initialize all variables that we clean on shutdown */ | 171 /* Initialize all variables that we clean on shutdown */ |
172 this->hidden = (struct SDL_PrivateAudioData *) | 172 this->hidden = (struct SDL_PrivateAudioData *) |
173 SDL_malloc((sizeof *this->hidden)); | 173 SDL_malloc((sizeof *this->hidden)); |
174 if (this->hidden == NULL) { | 174 if (this->hidden == NULL) { |
175 SDL_OutOfMemory(); | 175 SDL_OutOfMemory(); |
176 return 0; | 176 return 0; |
177 } | 177 } |
178 SDL_memset(this->hidden, 0, (sizeof *this->hidden)); | 178 SDL_memset(this->hidden, 0, (sizeof *this->hidden)); |
223 /* We're ready to rock and roll. :-) */ | 223 /* We're ready to rock and roll. :-) */ |
224 return 1; | 224 return 1; |
225 } | 225 } |
226 | 226 |
227 static int | 227 static int |
228 DCAUD_Init(SDL_AudioDriverImpl *impl) | 228 DCAUD_Init(SDL_AudioDriverImpl * impl) |
229 { | 229 { |
230 /* Set the function pointers */ | 230 /* Set the function pointers */ |
231 impl->OpenDevice = DCAUD_OpenDevice; | 231 impl->OpenDevice = DCAUD_OpenDevice; |
232 impl->PlayDevice = DCAUD_PlayDevice; | 232 impl->PlayDevice = DCAUD_PlayDevice; |
233 impl->WaitDevice = DCAUD_WaitDevice; | 233 impl->WaitDevice = DCAUD_WaitDevice; |