Page 1 of 1

wavtoraw crash on build 4 bit 22050 hz wav file

Posted: Tue Mar 06, 2018 8:50 am
by werton
Hi there. I recently started to deal with SGDK. There was a task, to receive the most high-quality PCM sound, decided to try SND_startPlay_2ADPCM with 22050 hz. Maybe I'm doing something wrong, but how to properly prepare ADPCM 4 bit 22050 hz wav file for playing sound with SND_startPlay_2ADPCM?
I tried various variants with SOX converter, but wavtoraw.exe was permanently crashing when I try to build project with 4 bit ADPCM wav file.

Re: wavtoraw crash on build 4 bit 22050 hz wav file

Posted: Tue Mar 06, 2018 11:43 am
by werton
it seems I understood, there is no need to pre-convert the sound, rescomp itself converts. everything works :D

Re: wavtoraw crash on build 4 bit 22050 hz wav file

Posted: Tue Mar 06, 2018 12:21 pm
by Stef
Exactly ;) Just need to use rescomp and declare WAV resource correctly (specially that you want to use 2ADPCM driver).
The best is to preprocess your sample first and put in it at 22 Khz, rescomp can change rate (32Khz input changed to 22 Khz for instance) but it does it really bad so it's better to have it converted to 22 Khz with proper audio tools before ;)

Re: wavtoraw crash on build 4 bit 22050 hz wav file

Posted: Tue Mar 06, 2018 1:33 pm
by werton
Thanks for the tip Stef :)