Skip to content

Commit 55a39d0

Browse files
alexbatalovslouken
authored andcommitted
Fix double clamping of precached data
1 parent 21f9e67 commit 55a39d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SDL_mixer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,8 @@ MIX_Audio *MIX_LoadAudioWithProperties(SDL_PropertiesID props) // lets you spec
10671067
if ((audio->precache = SDL_LoadFile_IO(io, &audio->precachelen, false)) == NULL) {
10681068
goto failed;
10691069
}
1070+
audio->clamp_offset = -1; // precache is already clamped
1071+
audio->clamp_length = -1;
10701072
}
10711073

10721074
if (ioclamp) {

0 commit comments

Comments
 (0)