Edzelf / Esp-radio

Internet radio based on Esp8266 and VS1053.
MIT License
622 stars 200 forks source link

Stations with redirect will not work when SPIRAM enabled #213

Open h1aji opened 2 years ago

h1aji commented 2 years ago

Hi Ed, I noticed that if SPIRAM enabled then stations with redirect wont work. Here is output

D: New preset/file requested (1/0) from n0d.radiojar.com/hcrb063nn3quv
D: Connect to new host n0d.radiojar.com/hcrb063nn3quv
D: Connect to n0d.radiojar.com on port 80, extension /hcrb063nn3quv
D: Connected to server
D: Switch to HEADER
D: Access-Control-Allow-Origin: *
D: No data input
D: No data input
D: Trying other station/file...
D: STOP requested
D: New preset/file requested (8/0) from stream.live.vc.bbcmedia.co.uk/bbc_world_service

Although ringbuf works perfectly fine

Edzelf commented 2 years ago

Yes, I know. That is because there is a delay (a number of input bytes). The redirect info is less than that number and is therefore not handled.

Edzelf commented 2 years ago

I have no way to test it.

h1aji commented 2 years ago

I tested it and it works fine

Edzelf commented 2 years ago

so, what is the problem?

h1aji commented 2 years ago

No issue with the code itself. Just redirect is not working

h1aji commented 2 years ago

Hi @Edzelf I was trying to modify https://github.com/Edzelf/Esp-radio/blob/65f20ce4a5334ed1a272d046e8ed7f6b73dbb5e5/Esp_radio.ino#L2478

with no success.

Would you be able to advise how it can be done, maybe you can give me a clue? Thanks

h1aji commented 3 months ago

Hi @Edzelf Is there any chance to make redirect working while SPIRAM option is enabled? Thanks