Add support for playing back Opus files #5

Open Jookia opened this issue on 19 Mar - 0 comments

@Jookia Jookia commented on 19 Mar

This is kind of a complicated goal but includes building Opusfile, Ogg, Opus in to Mbed, reading Opus files from the storage, and playing them.

Mbed doesn't provide an audio interface driver so we will have to probably reference and

The theory looks simple:

  • Initialize the SAI clock
  • Initialize the SAI peripheral
  • Initialize the SAI pins
  • Initialize the audio codec (what clock/regulator does this use?)
  • Initialize DMA with an audio buffer
  • Feed the buffer as needed

Mbed provides the HAL for the SAI, but we will need to lift the audio layer from the BSP and audio codec driver.

This has been kind of done here: We should try these examples:

These two fixes to the BSP code are also good hints for us if we decide to copy the BSP code ourselves:

I vaguely recall that I have some code laying around for playing a sine wave from the board's audio so I might dredge that up.


No milestone
No one assigned
1 participant