Skip to content

Commit

Permalink
mp3, mad: change audio stream src_format from AUDIO_S16 to AUDIO_S16SYS
Browse files Browse the repository at this point in the history
thanks to BeWorld2018 for testing
  • Loading branch information
sezero committed Mar 26, 2021
1 parent cbb79ee commit b7aa31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codecs/music_mad.c
Expand Up @@ -483,7 +483,7 @@ static SDL_bool decode_frame(MAD_Music *music)
if (music->audiostream) {
SDL_FreeAudioStream(music->audiostream);
}
music->audiostream = SDL_NewAudioStream(AUDIO_S16, (Uint8)pcm->channels, (int)pcm->samplerate,
music->audiostream = SDL_NewAudioStream(AUDIO_S16SYS, (Uint8)pcm->channels, (int)pcm->samplerate,
music_spec.format, music_spec.channels, music_spec.freq);
if (!music->audiostream) {
return SDL_FALSE;
Expand Down

0 comments on commit b7aa31c

Please sign in to comment.