3 Replies Latest reply on Dec 10, 2018 2:05 AM by AnkitaS_51

    audio streaming in PSoC 6 with ping-pong buffers

    jac_3880146

      I have a PSoC 6 CY8CKIT-062-BLE board, and I was looking for a code example which implements an audio passthrough behaviour (i.e. record data and output it in real-time). Basically I was looking for something similar to this: http://www.cypress.com/file/411496/download , but in that case it is "record data, then playback".

       

      The configuration I had in mind would employ 4 buffers: 2 for input and 2 for output. When Ping_In is full (e.g. after 64 samples), an interrupt is triggered and data is copied to Ping_Out. Meanwhile, Pong_In starts filling, etc...

       

      I checked this thread: Audio Streaming and Signal Processing using DMA but it was not really similar to the scenario I just explained. Is there a code example available for the case above? Thanks in advance!