Hi Eric:
No problem - these are all good questions I'm sure other users will find useful. The chip uses a resistor to set the system clock speed, which controls the timing of everything that happens in the chip. Both the Fox Board and the Project Board have this resistor. You'll see it on the board labeled Rosc, which is shorthand for "oscillator resistor." The nominal value of this resistor is 180k, but it can be changed to slow down or speed up the system clock, which has the effect of altering the audio playback speed, too. If your audio is playing too fast, a 200k resistor could be used instead of the 180k resistor. This is a good overall solution because it sets the sample rate for that particular board.
Changing this resistor may not be practical for some users, so luckily there is another solution you can use which changes the playback sample rate from within the program. The
freq command
is used in the program to set the playback sample rate. You can set this to a lower sample rate, like freq=11.9k, which will cause your audio to play back slower. This is nice because you don't need to update the sample rate of your source audio files. (We normally don't recommend tweaking the sample rate of your audio to fix speed issues.)
So in your program you would replace this command:
with this command:
Additionally, you can set the playback sample rate for effect, for example if you wanted to slow the audio way down to make it sound really sluggish, or speed it way up for a "chipmunk" effect.