cancel
Showing results for 
Search instead for 
Did you mean: 

Mono audio source in Flash

Alexmouse
Senior

I want to play an audio clip over i2s from Flash memory. My application is mono and a mono source will fit in flash, but not stereo, it is too big.

The HAL i2s interface does not appear to offer a mechanism to duplicate mono source bytes (16b) onto the stereo stream. Am I missing something? (STM32F411)

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
12 REPLIES 12

Why you dont use IT or DMA mode? Or when you plan blocking mode send one sample per call i mean FIFO buffer handle one sample send ok.

Alexmouse
Senior

Looks like I need to go stereo & DMA. Seems a waste when I will discard 50% of the data.

Alexmouse
Senior

One sample per call seems to work much better, thanks for the idea!