If you have a WAV file that you want to store in the SDRAM, you need to convert the raw audio to an 8KHz 16 bit, signed two's complement samples and store the audio samples in an XES file. You can do this in two steps:
makeraw
has two arguments, the name of the WAV file you want to convert and the
number of 16-bit samples you want to store in the SDRAM. So if your WAV
file is mysound.wav
and you want to store 65536 samples (just as in Lab 6), you run makeraw
like this: makeraw('mysound.wav',65536);
The function will output a file in the working
directory called mysound.raw
that is 65536 samples long.
Last modified: Thu May 27 12:48:42 PST 2002