Fix SDL_SetAudioStreamFormat incorrectly blocking changes on bound streams
We want to avoid changes to the end used by the device, so src for capture and dst for outputmain
parent
d69e6714a8
commit
449b0229eb
|
@ -558,9 +558,9 @@ int SDL_SetAudioStreamFormat(SDL_AudioStream *stream, const SDL_AudioSpec *src_s
|
||||||
// quietly refuse to change the format of the end currently bound to a device.
|
// quietly refuse to change the format of the end currently bound to a device.
|
||||||
if (stream->bound_device) {
|
if (stream->bound_device) {
|
||||||
if (stream->bound_device->physical_device->iscapture) {
|
if (stream->bound_device->physical_device->iscapture) {
|
||||||
dst_spec = NULL;
|
|
||||||
} else {
|
|
||||||
src_spec = NULL;
|
src_spec = NULL;
|
||||||
|
} else {
|
||||||
|
dst_spec = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue