Hi, I am adding sound into my project, and I have gotten the sample1.c file playing on my GP32, but now I want to convert my own file to play on the GP32.
Mirko says:
So I downloaded sox and used "sox music.wav -s music.raw", but instead of getting this like in the sample:
I got something like this:
Obviously, my converted file would not play. What did I do wrong? Are there more arguments I must give sox?
Mirko says:
Please convert your gp32 samples to
22050Hz
signed
16Bit
stereo or mono
Do this with sox :
sox sample.wav -s sample.raw
So I downloaded sox and used "sox music.wav -s music.raw", but instead of getting this like in the sample:
unsigned char sample1[] = { 70,255,70,255,77,255,77,255,18,255,18,255,252,254,252,254,250,254,250,254,191,254,191,254,43,255,43,255,202
etc
I got something like this:
ýüú÷ñëêëîïíìíðòóôøÿÿþþýüÿ ýïæçìõþøîêëô ùòëæ
etc
Obviously, my converted file would not play. What did I do wrong? Are there more arguments I must give sox?