#98831 - iainprice - Thu Aug 17, 2006 9:17 pm
When I use the raw files that are supplied with nds-examples, they sound fine. When I replace them with some 8-bit, mono 11025 samples they sound distorted. I tried reducing the volume of the samples but they are still the same. I tried reducing the volume in the amr7 code... still distorted. I am using sound forge for creating basic wavs, then sox to make them raw.
Any ideas?
#98834 - tepples - Thu Aug 17, 2006 9:27 pm
A .wav file normally contains unsigned data, while the DS expects signed data. Have you tried the signed/unsigned switch in SoX? When writing raw data, use -s for signed.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#98897 - iainprice - Fri Aug 18, 2006 10:07 am
No change, still distorted...
#99091 - iainprice - Sat Aug 19, 2006 2:57 pm
Can someone send me a wav file that they think works with no distortion... I'll try it using sox and my code and see what happens.
As I said the raw files for the examples work OK, but my wavs are distorted... even when the volume is reduced and the -s switch is used....
#99102 - tepples - Sat Aug 19, 2006 3:41 pm
Have you tried loading the raw data into your own code and then plotting the waveform so that you can see what's wrong? What about hex editing it?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#99301 - iainprice - Sun Aug 20, 2006 3:45 pm
It was sox. When I opened the raw in a windows sound editor... it was distorted. I am now converting wav to raw using sound forge....