Open TheEeveeLovers opened 7 months ago
Lemme debug this thing... Looks like weird one...
Actually, chunk has wrong size:
It asks 61 byte, but actually, there is 53 bytes written:
As my debugger tells:
So, technically, these WAV files considered being invalid because chunk size is longer than it stores actually. These files can be fixed by changing the chunk size value into correct value:
I see, the MFAudio utility is actually very old and didn't updated for a while (I may guess, author won't fix this bug). However, I could make a workaround to don't invalidate the file when it reaches the end.
Just now, I added a workaround, should work now.
I haven't got a chance to test this on the official SDL_Mixer, only Mixer_X, but I have also tested this in two different versions of pge_musplay and still ran into the problem. The error in question:
Couldn't read 61 bytes from WAV file
Some investigation has led me to believe this is caused by MFAudio's signature at the end of each file, which is indeed 61 bytes long Removing the signature causes the file to play fine with no issue whatsoeverAnyways, here are some files so you can test on your end: BASELINE - SLIPKNOT - POD