Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Patched to compile on C89 compilers.
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
src/audio/SDL_audio.c
|
@@ -687,8 +687,9 @@ SDL_RunAudio(void *devicep) |
|
|
SDL_AudioStreamPut(device->stream, data, data_len); |
|
|
|
|
|
while (SDL_AudioStreamAvailable(device->stream) >= ((int) device->spec.size)) { |
|
|
int got; |
|
|
data = SDL_AtomicGet(&device->enabled) ? current_audio.impl.GetDeviceBuf(device) : NULL; |
|
|
const int got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size); |
|
|
got = SDL_AudioStreamGet(device->stream, data ? data : device->work_buffer, device->spec.size); |
|
|
SDL_assert((got < 0) || (got == device->spec.size)); |
|
|
|
|
|
if (data == NULL) { /* device is having issues... */ |
|
|