Skip to content

Global Buffer which is used for ReadBytes? #1543

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

You must be logged in to vote

I don't quite understand your question and your example code does not provide any context information about the overall data flow: It pretty much depends on what you are using and your platform. In any case there is no global memory in the AudioTools and it is up to each class if some additional buffering is needed.
E.g. If you use a I2SStream of an ESP32 the reading comes from DMA memory and when you write the data goes to DMA memory, (if you use 2 channels) but this is an implementation detail of the API provided by the ESP32 and not of my functionality.

I just see that you are doing a conversion from float: You could save some complexity by using an EncodedAudioStream with a
DecoderFlo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
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