Skip to content

help - FormatConversion not working with stream #785

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

You must be logged in to vote

MP3 contains the sample rate, so the EncodedAudioStream automatically sets the audio information provided by the mp3.
I don't understand why you add this complexity when you plan to get the data from i2s in the end.
For testing just keep things simple and use a sine generator (or just use an mp3 file recorded in your desired sample rate!)

I also suggest to start simple and add complexity step, by step. That's how you will find where you made your error!

You can also try just to use the sample rate and i2s buffer to control the delay: the smaller the rate the bigger the delay and the bigger the buffer the bigger the delay.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
6 replies
@MohammedSamy
Comment options

@pschatzmann
Comment options

@MohammedSamy
Comment options

@MohammedSamy
Comment options

@pschatzmann
Comment options

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