mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-28 05:58:29 +00:00
audio: Calculate a legitimate SDL_AudioSpec::silence in SDL_LoadWAV_RW().
This commit is contained in:
@@ -2081,6 +2081,8 @@ WaveLoad(SDL_RWops *src, WaveFile *file, SDL_AudioSpec *spec, Uint8 **audio_buf,
|
||||
break;
|
||||
}
|
||||
|
||||
spec->silence = SDL_SilenceValueForFormat(spec->format);
|
||||
|
||||
/* Report the end position back to the cleanup code. */
|
||||
if (RIFFlengthknown) {
|
||||
chunk->position = RIFFend;
|
||||
|
Reference in New Issue
Block a user