libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.
zlib License
431 stars 147 forks source link

Loading a VOC file, the frequency is lost #593

Closed RPP-dev closed 9 months ago

RPP-dev commented 9 months ago

In this file: [SDL_mixer](https://github.com/libsdl-org/SDL_mixer/tree/main)/[src](https://github.com/libsdl-org/SDL_mixer/tree/main/src)/[codecs](https://github.com/libsdl-org/SDL_mixer/tree/main/src/codecs) /load_voc.c

_431 SDL_zerop(spec)_

removed the frequency that was obtained in:

_417 if (!voc_getblock(src, &v, spec)) {

The easiest way of fixing this is to move SDL_zerop(spec) from line 431 to 416 (the way it was more or less done on previous versions)

sezero commented 9 months ago

Should be fixed by https://github.com/libsdl-org/SDL_mixer/commit/6aebc4eec0a79c7fe7a780939a4ac303b27712cb

Thank you!