Skip to content

How to resample URLStreams to 48KHz before sending via I2S to Speaker? #1438

Answered by chess-levin
chess-levin asked this question in Q&A
Discussion options

You must be logged in to vote

I made another attempt using ResampleStream again (see code below). That works in general - the playback is perfect! Thank you for your food for thought!

BUT:

  1. Sometimes it happens, that the Wifi is so bad that some TCP frames drop out. After this has happened the playback falls back to old interrupted behavior and it'll never switch back to the correct playback. I have to restart the URLStream to get a clean playback. It's like the filter chain gets out of sync and then there is no resync anymore.
  2. The stream with this props 24KHz, 64Kbps is not correctly resampled. The playback's pitch is to high.
  3. Same behavior for the stream with this pros 48KHhz, 64Kbps

Any idea on this?

#include "my.…

Replies: 2 comments 6 replies

Comment options

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

@chess-levin
Comment options

@pschatzmann
Comment options

@chess-levin
Comment options

Answer selected by chess-levin
@pschatzmann
Comment options

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