Skip to content

Implementing a Source and Sink with I2s #409

Answered by pschatzmann
qcorr asked this question in Q&A
Discussion options

You must be logged in to vote

This is definitely not an issue, so I converted it to a discussion. Please use issues for bugs only!

Then, from your description you left me totally confused and I don't quite understand what you try to do.

Looking at your code, there is no way your approach can work. Here are the issues

  • You need to sample audio with a consistent rate (in this case with 44100 samples per second), so analog read is completely wrong here. I suggest that you have a look at the AudioTools project and you can try to use the AnalogAudioStream. But before you can even think of reading and transmitting any audio data you need to build a test case to make sure that you have a correct signal.
  • If I understood you c…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@qcorr
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #408 on April 20, 2023 17:09.