mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-22 12:48:28 +00:00
audio: Add channel remapping to SDL_AudioSpec and SDL_AudioStream.
Fixes #8367.
This commit is contained in:
parent
0367f1af19
commit
16e7fdc4f2
12 changed files with 254 additions and 193 deletions
|
@ -109,6 +109,7 @@ static void queue_audio()
|
|||
int retval = 0;
|
||||
SDL_AudioSpec new_spec;
|
||||
|
||||
SDL_zero(new_spec);
|
||||
new_spec.format = spec.format;
|
||||
new_spec.channels = (int) sliders[2].value;
|
||||
new_spec.freq = (int) sliders[1].value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue