Input to the DAC #418
-
Hi I am quite new to programming in ES32 and I got my iphone to connect to it and have music playing to my earphone via an external 32 bit dac. For a school project I want to filter this audio. My question is how can I access the data going to the DAC. My teacher told me the data going to the dac is pcm and should be able to be filtered and need to be for both channels. / In the setup function: // Then somewhere in your sketch: int16_t samples = (int16_t) data; I saw this function in your library, but I am not sure if this function is the right. My final question, if I can access the data to the DAC, where can I find information to start to have the filtered data go to the dac and to my earphones |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suggest that you have a look at my AudioTools project. The Readme and Wiki should have all the information to get you started! It has also plenty of examples that might help you to get started. This example shows how to use the callback and just write them to the DAC. You can just replace this with a FilteredStream. There is a chapter in the Wiki about Filters! |
Beta Was this translation helpful? Give feedback.
I suggest that you have a look at my AudioTools project. The Readme and Wiki should have all the information to get you started!
It has also plenty of examples that might help you to get started. This example shows how to use the callback and just write them to the DAC. You can just replace this with a FilteredStream. There is a chapter in the Wiki about Filters!