I2S to a2dp a2dpStream . . . waiting for buffer to be consumed #923
-
I2s to a2dpStream I'm getting waiting for buffer to be consumed. What this mean ? What the solution ? I2S rx at ( 44100 2 16 ) 11:00:38.150 -> [I] StreamCopy.h : 139 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Which sketch are you trying to use ? Write is filling a buffer which needs to be consumed by A2DP callbacks. |
Beta Was this translation helpful? Give feedback.
-
Which sketch are you trying to use ? I just slightly modify i2s to a2dp Write is filling a buffer which needs to be consumed by A2DP callbacks. why is this am i coping fast ?I use ( 44100 2 16 ) because thought a2dp support this right ? I would recommend to avoid the A2DPStream and use the basic examples instead: they are much more efficient. |
Beta Was this translation helpful? Give feedback.
-
This is just an information: if you want the message to go away, just change the log level to warning. |
Beta Was this translation helpful? Give feedback.
-
problem is not with the information . why the buffer is filled ? If feeding data at proper rate (44100 ) ??? I am stuck ? |
Beta Was this translation helpful? Give feedback.
-
As I said, everything works as designed: The copy just tries to keep the buffer full and if it is already full it is waiting for a now buffer to be available, issuing this message... |
Beta Was this translation helpful? Give feedback.
You mean millisecondss ? It can't be 15 seconds!
In any case, as I already told you above you should avoid to use the A2DPStream and use the example from the basic examples instead!
This does not need any buffer at all!