Once your parser is working, it’s time to create an audio player that can read a WAV file off an SD card and play it. The fat file system described in Chapter 8 has read (f_read), and lseek (f_lseek) commands with slightly different interfaces than the Linux equivalent. You should modify your audio player to open a particular WAV file (you’ll need to copy a suitable file to an SD card) from an SD card, parse the header, initialize the player, and then “play” the file – here’s an example of how I handled the audioplayerHalf event (next is the number of bytes to be copied which is generally half the buffer size except at the file end)