Loopback on TCP+SBC Noise #806
-
Hi I'm still new to this but starting to understand the approach. This is working fine:
Then I included an extra step which sends the stream to a TCP echo server which simply sends all packets back in the same order and I'm trying to to the same through the TCP echo server.
and it sounds terrible. I used this method to transfer 24kHz / 16 bit uncompressed audio (>700kbps) (I2S->TCP(tx)->TCP(rx)->I2S) and worked fine so I would think 44.1kHz /. 16 bit + SBC (~350kbps) should be ok? Am I simply using the copier_rx.copy() wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
I think this should work, assuming you call the begin method passing the audio info to both, the encoder and the decoder stream. You could also try to decrease the copy size by specifying the length in the constructor of the 2 StreamCopy |
Beta Was this translation helpful? Give feedback.
-
I would not rely on what copier.available() is reporting: It's just the avialalbe() of the copy source. For I2S this is alway the max and never the effective value. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @pschatzmann it's working now! |
Beta Was this translation helpful? Give feedback.
I think this should work, assuming you call the begin method passing the audio info to both, the encoder and the decoder stream.
Can it be that the echo server is dropping some bytes ? This might not only be noticed in your pcm test case when an odd number is lost, but it would have a much bigger impact on the encoded data.
You could also try to decrease the copy size by specifying the length in the constructor of the 2 StreamCopy