ESP8266Audio icon indicating copy to clipboard operation
ESP8266Audio copied to clipboard

[Probably solved] - Problems loading another web stream, buffer only cleaning up after 10-20 seconds.

Open CelliesProjects opened this issue 6 years ago • 2 comments

I have a problem loading a stream after I opened and played a stream on a M5 Stack Fire board.

First time a stream is opened it plays within seconds. If I change to another stream it takes between 0.5 and 20 seconds to clear the previous buffer. Am I missing something here? Log output: (note the pauses when cleaning the buffer.

12:28:43.093 -> 

CelliesProjects avatar Nov 29 '19 11:11 CelliesProjects

I think the problem will be solved in ESP32 Arduino core 2.0.3. The problem seems to be in the HTTPClient::disconnect(bool preserveClient) code. See https://github.com/espressif/arduino-esp32/commit/02a70bbd21ff7b36b7760f78aebfe257da3c6e9c which I think solves this issue. I will report back once 2.0.3 is released.

CelliesProjects avatar Feb 24 '22 08:02 CelliesProjects

Also see https://github.com/espressif/arduino-esp32/pull/6277 and https://github.com/espressif/arduino-esp32/issues/828 and https://github.com/h3ndrik/ESP8266Audio/commit/e030dd0e563730fb262fbd968ba0006e81991754 for more info on this issue.

CelliesProjects avatar Feb 24 '22 08:02 CelliesProjects