mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 00:08:39 +00:00
audio: Fixed copy/paste error that was checking wrong variable.
Fixes #8342.
This commit is contained in:
parent
d2d4914ac3
commit
ff57867516
1 changed files with 1 additions and 1 deletions
|
|
@ -1565,7 +1565,7 @@ int SDL_SetAudioPostmixCallback(SDL_AudioDeviceID devid, SDL_AudioPostmixCallbac
|
|||
SDL_AudioDevice *device = logdev->physical_device;
|
||||
if (callback && !device->postmix_buffer) {
|
||||
device->postmix_buffer = (float *)SDL_aligned_alloc(SDL_SIMDGetAlignment(), device->work_buffer_size);
|
||||
if (device->mix_buffer == NULL) {
|
||||
if (device->postmix_buffer == NULL) {
|
||||
retval = SDL_OutOfMemory();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue