Implementing DSP capabilities #215
-
I've really enjoyed using this library, I have managed to connect a device and play audio successfully, but I would also like to filter the audio before it is output. Is it possible, and how would I go about grabbing the data (every sample per frame) and manipulating it before it is output. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is documented in the Readme (Accessing the Sink Data Stream with Callbacks) and there is an example (bt_music_receiver_datacallback). Just cast the data to a (int16_t*). The even samples are for one channel the odd samples are for the other channel. I would recommend that you use my Arduino Audio Tools library for the for the DSP processing. There are many examples in that library e.g. basic-a2dp-i2s/ just search for a2dp |
Beta Was this translation helpful? Give feedback.
It is documented in the Readme (Accessing the Sink Data Stream with Callbacks) and there is an example (bt_music_receiver_datacallback). Just cast the data to a (int16_t*). The even samples are for one channel the odd samples are for the other channel.
I would recommend that you use my Arduino Audio Tools library for the for the DSP processing. There are many examples in that library e.g. basic-a2dp-i2s/ just search for a2dp