audio: Fixed audiostreams converting incorrect channel counts.

main
Ryan C. Gordon 2023-05-09 10:58:32 -04:00
parent 7f219aa369
commit 0e1669e296
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ static int GetAudioStreamDataInternal(SDL_AudioStream *stream, void *buf, int le
resample_outbuf, output_frames);
/* Get us to the final format! */
ConvertAudio(output_frames, resample_outbuf, SDL_AUDIO_F32, src_channels, buf, dst_format, dst_channels);
ConvertAudio(output_frames, resample_outbuf, SDL_AUDIO_F32, pre_resample_channels, buf, dst_format, dst_channels);
return (int) (output_frames * dst_sample_frame_size);
}