Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audio.c @ 3795:589bc3d060cd SDL-ryan-multiple-audio-device
More 1.3 audio work...moved dsp and dma drivers over to new model. Untested!
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 04 Oct 2006 06:00:10 +0000 |
parents | 866c310e2cb5 |
children | b19680c84cdf |
comparison
equal
deleted
inserted
replaced
3794:db24e43972ac | 3795:589bc3d060cd |
---|---|
128 return NULL; | 128 return NULL; |
129 } | 129 } |
130 | 130 |
131 return open_devices[id]; | 131 return open_devices[id]; |
132 } | 132 } |
133 | |
134 | |
135 /* stubs for audio drivers that don't need a specific entry point... */ | |
136 /* !!! FIXME: fill in more of these. */ | |
137 | |
138 static void SDL_DeinitializeAudio_Default(void) | |
139 { | |
140 /* no-op. */ | |
141 } | |
142 | |
133 | 143 |
134 | 144 |
135 /* The general mixing thread function */ | 145 /* The general mixing thread function */ |
136 int SDLCALL | 146 int SDLCALL |
137 SDL_RunAudio(void *devicep) | 147 SDL_RunAudio(void *devicep) |
439 } | 449 } |
440 | 450 |
441 if (!current_audio.impl.LockDevice && !current_audio.impl.UnlockDevice) { | 451 if (!current_audio.impl.LockDevice && !current_audio.impl.UnlockDevice) { |
442 current_audio.impl.LockDevice = SDL_LockDevice_Default; | 452 current_audio.impl.LockDevice = SDL_LockDevice_Default; |
443 current_audio.impl.UnlockDevice = SDL_UnlockDevice_Default; | 453 current_audio.impl.UnlockDevice = SDL_UnlockDevice_Default; |
454 } | |
455 | |
456 if (!current_audio.impl.Deinitialize) { | |
457 current_audio.impl.Deinitialize = SDL_DeinitializeAudio_Default; | |
444 } | 458 } |
445 | 459 |
446 return (0); | 460 return (0); |
447 } | 461 } |
448 | 462 |