wavtoraw crash on build 4 bit 22050 hz wav file

SGDK only sub forum

Moderator: Stef

Post Reply
werton
Newbie
Posts: 3
Joined: Fri Jan 26, 2018 9:12 am

wavtoraw crash on build 4 bit 22050 hz wav file

Post by werton » Tue Mar 06, 2018 8:50 am

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.

werton
Newbie
Posts: 3
Joined: Fri Jan 26, 2018 9:12 am

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

Post by werton » Tue Mar 06, 2018 11:43 am

it seems I understood, there is no need to pre-convert the sound, rescomp itself converts. everything works :D

User avatar
Stef
Very interested
Posts: 2780
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

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

Post by Stef » Tue Mar 06, 2018 12:21 pm

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 ;)

werton
Newbie
Posts: 3
Joined: Fri Jan 26, 2018 9:12 am

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

Post by werton » Tue Mar 06, 2018 1:33 pm

Thanks for the tip Stef :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest