libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading a VOC file, the frequency is lost

RPP-dev opened this issue · comments

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

431 SDL_zerop(spec)

removed the frequency that was obtained in:

417 if (!voc_get_block(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)

Should be fixed by 6aebc4e

Thank you!