top of page

.WAV player:

This follows my substantial progress made on the STM32 implementing the FAT File System, as presented in my GPS data logger.

This one is based on my STM32F103  developpement board:

SD-MMC: the hability to handle a File System

opened a new wide dimension to my applications: on this want I want to read WAV sound files.

 

.WAV: the WAV format is a standard audio format which can easily be parsed. The header contains various informations such as:

  • Sampling Frequency, Byte Rate, nb of bits per sample

  • Audio encoding format

  • amount of audio channels..

 

I created a little library (C) to parse WAV files:

 

Flow:

  • Select a file thanks to the user interface (LCD+buttons)

          this navigates through the SD card file system

 

  • Once a file is selected

          Read 44 bytes and parse the header:

 

Synth

I am also using my STM32 Digital/Analog conversion library used in my previous synthesizer based on this device.

  • Retrieve sampling frequency,

  • audio format,

  • bit rate..

 

 

  • Read the whole file (512 byte chuncks)

Process audio data according to the format.

 

bottom of page