How to properly start/stop/restart URLStreams? #2342
-
|
What's the correct way of stopping playback and starting again on URL streams? The below code walks through a list of URLs, setting up an URLStream -> EncodedAudioStream -> VolumeMeter pipeline, which is copied to an I2SStream with a StreamCopy operation. (The VolumeMeter is purely for visualization purposes with the internal LED, I don't have a speaker here right now...) The first URL plays fine. Starting the second URL fails in If I don't do the ... and there it hangs in an infinite loop. I have confirmed that both streams work by switching their order. Here's the code: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
|
I recommend to avoid to build the audio processing chain on the input side if ever possilbe. A better way to handle this is This is
Can you review the URLStreamESP32. I think the issue is that end is not setting client_handle to nullpointer. |
Beta Was this translation helpful? Give feedback.
I recommend to avoid to build the audio processing chain on the input side if ever possilbe. A better way to handle this is
URLStream -copy-> EncodedAudioStream -> VolumeMeter -> I2SStream
This is
Can you review the URLStreamESP32. I think the issue is that end is not setting client_handle to nullpointer.