Skip to content

Commit

Permalink
audio: Add an assert to make sure non-streaming audio uses good buffe…
Browse files Browse the repository at this point in the history
…r sizes.
  • Loading branch information
icculus committed Jan 6, 2017
1 parent 356c2ea commit 748f460
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -565,6 +565,7 @@ SDL_RunAudio(void *devicep)
while (!SDL_AtomicGet(&device->shutdown)) {
/* Fill the current buffer with sound */
if (!device->stream && SDL_AtomicGet(&device->enabled)) {
SDL_assert(device->spec.size == device->callbackspec.size);
stream = current_audio.impl.GetDeviceBuf(device);
} else {
/* if the device isn't enabled, we still write to the
Expand Down

0 comments on commit 748f460

Please sign in to comment.