Skip to main content
Visitor II
May 13, 2020
Question

BSP_AUDIO_OUT_Play

  • May 13, 2020
  • 1 reply
  • 752 views

I wonder what is a best way to play a file in small chunks? Is there is a standart way of doing it or you should make a timer that expires just before the previous data is played and then call BSP_AUDIO_OUT_Play() again?

    This topic has been closed for replies.

    1 reply

    ALevc.1Author
    Visitor II
    May 15, 2020

    Here si the answer to the question. Taken form the example application comment

    "Start playing the file from a circular buffer, once the DMA is enabled, it is

     always in running state. Application has to fill the buffer with the audio data

     using Transfer complete and/or half transfer complete interrupts callbacks

     (AUDIO_TransferComplete_CallBack() or AUDIO_HalfTransfer_CallBack()..."