|
@@ -759,7 +759,7 @@ SDL_RunAudio(void *devicep)
|
|
int got;
|
|
int got;
|
|
data = SDL_AtomicGet(&device->enabled) ? current_audio.impl.GetDeviceBuf(device) : NULL;
|
|
data = SDL_AtomicGet(&device->enabled) ? current_audio.impl.GetDeviceBuf(device) : NULL;
|
|
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));
|
|
|
|
|
|
+ SDL_assert((got <= 0) || (got == device->spec.size));
|
|
|
|
|
|
if (data == NULL) { /* device is having issues... */
|
|
if (data == NULL) { /* device is having issues... */
|
|
const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
|
|
const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
|