mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-21 06:45:44 +00:00
audio: Fix postmix state when migrating to new default devices.
Otherwise buffers might not be allocated, etc.
This commit is contained in:
@@ -2065,6 +2065,8 @@ void SDL_DefaultAudioDeviceChanged(SDL_AudioDevice *new_default_device)
|
||||
RefPhysicalAudioDevice(new_default_device);
|
||||
UnrefPhysicalAudioDevice(current_default_device);
|
||||
|
||||
SDL_SetAudioPostmixCallback(logdev->instance_id, logdev->postmix, logdev->postmix_userdata);
|
||||
|
||||
SDL_PendingAudioDeviceEvent *p;
|
||||
|
||||
// Queue an event for each logical device we moved.
|
||||
|
||||
Reference in New Issue
Block a user