ssc_dma_audio
This program plays a WAV file pre-loaded into the flash. The audio stream is sent through the SSC interface connected to the on-board WM8731, enabling the sound to be audible using a pair of headphones. Since the WM8731 DAC requires that it should be feeded a master clock multiple of the sample rate, it is difficult to handle any WAV file. As such, this example application is limited to playing files with the following format: - Format: WAV - Sample rate: 48 kHz The code can be roughly broken down as follows:
- Enable the clock
- Load WAV file information
- Configure and enable the Codec
- Configure and enable the SSC interrupt
- Play WAV file