Skip to content

Commit c42ab27

Browse files
committed
Excessive duration of the audio.loop() routine with version 3.4.1f #1133
1 parent eab4ea9 commit c42ab27

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Audio.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
audio.cpp
44
55
Created on: Oct 28.2018 */char audioI2SVers[] ="\
6-
Version 3.4.1h ";
6+
Version 3.4.1i ";
77
/* Updated on: Aug 16.2025
88
99
Author: Wolle (schreibfaul1)
@@ -3329,7 +3329,7 @@ bool Audio::readPlayListData() {
33293329
AUDIO_INFO("url is a webpage!");
33303330
goto exit;
33313331
}
3332-
AUDIO_INFO("current playlist line: %s", pl.get());
3332+
// AUDIO_INFO("current playlist line: %s", pl.get());
33333333
if(pl.size() > 0) m_playlistContent.emplace_back(std::move(pl));
33343334

33353335

@@ -3606,7 +3606,7 @@ ps_ptr<char> Audio::parsePlaylist_M3U8() {
36063606
m_linesWithURL.pop_front();
36073607
m_linesWithURL.shrink_to_fit();
36083608
}
3609-
AUDIO_LOG_INFO("now playing %s", playlistBuff.get());
3609+
AUDIO_LOG_DEBUG("now playing %s", playlistBuff.get());
36103610
if(endsWith(playlistBuff.get(), "ts")) m_f_ts = true;
36113611
if(playlistBuff.contains(".ts?") > 0) m_f_ts = true;
36123612
m_playlistBuff.clone_from(playlistBuff);
@@ -6372,6 +6372,8 @@ int32_t Audio::getChunkSize(uint8_t *readedBytes, bool first) {
63726372
m_gchs.f_skipCRLF = false;
63736373
}
63746374

6375+
if (!m_client->available()) return -1;
6376+
63756377
// -------- HTTP-chunked-Read Logic --------
63766378
std::string chunkLine;
63776379
ctime = millis();

0 commit comments

Comments
 (0)