diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 1ec7b854e..ea1139720 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -1484,7 +1484,7 @@ int SDL_SetAudioPostmixCallback(SDL_AudioDeviceID devid, SDL_AudioPostmixCallbac int retval = 0; if (logdev) { SDL_AudioDevice *device = logdev->physical_device; - if (!device->postmix_buffer) { + if (callback && !device->postmix_buffer) { device->postmix_buffer = (float *)SDL_aligned_alloc(SDL_SIMDGetAlignment(), device->work_buffer_size); if (device->mix_buffer == NULL) { retval = SDL_OutOfMemory();