#153922 - johnnywashngo - Tue Apr 08, 2008 1:36 pm
Hi,
I am going through various tutorials to help me get to grips with DS coding. I am quite out of practice with my C from what I can tell and also am quite new to DS coding in general.
To date I am confident that I can get graphics on screen/s and get some input from the various control methods the DS provides. I have learned a lot of this from the manual here: http://patater.com/manual
However, I am having a problem with the sound section of that manual, in particular getting the sound to play back at the correct sample rate. I have several audio files, each encoded at 22050 Khz and then converted to raw using the sox command from the manual: http://patater.com/files/projects/manual/manual.html#id2537335.
My problem is that when I instruct the DS to play any of the sounds they are played half speed. This can be remedied in code by increasing the sample rate from 22050 to 44100 but this seems very wrong and I am wondering what I am doing wrong?
Has anybody else come across this issue?
Is there a better sound tutorial out there?
Cheers.
I am going through various tutorials to help me get to grips with DS coding. I am quite out of practice with my C from what I can tell and also am quite new to DS coding in general.
To date I am confident that I can get graphics on screen/s and get some input from the various control methods the DS provides. I have learned a lot of this from the manual here: http://patater.com/manual
However, I am having a problem with the sound section of that manual, in particular getting the sound to play back at the correct sample rate. I have several audio files, each encoded at 22050 Khz and then converted to raw using the sox command from the manual: http://patater.com/files/projects/manual/manual.html#id2537335.
My problem is that when I instruct the DS to play any of the sounds they are played half speed. This can be remedied in code by increasing the sample rate from 22050 to 44100 but this seems very wrong and I am wondering what I am doing wrong?
Has anybody else come across this issue?
Is there a better sound tutorial out there?
Cheers.