Skip to content

Commit 60a869e

Browse files
committed
use c_get() (if 'not_valid')
1 parent 915020b commit 60a869e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Audio.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
audio.cpp
44
55
Created on: Oct 28.2018 */char audioI2SVers[] ="\
6-
Version 3.3.2m ";
7-
/* Updated on: Jul 09.2025
6+
Version 3.3.2n ";
7+
/* Updated on: Jul 10.2025
88
99
Author: Wolle (schreibfaul1)
1010
Audio library for ESP32, ESP32-S3 or ESP32-P4
@@ -3360,8 +3360,8 @@ void Audio::processLocalFile() {
33603360
m_codec = CODEC_NONE;
33613361

33623362
if(afn.valid()) {
3363-
if(audio_eof_mp3) audio_eof_mp3(afn.get());
3364-
AUDIO_INFO("End of file \"%s\"", afn.get());
3363+
if(audio_eof_mp3) audio_eof_mp3(afn.c_get());
3364+
AUDIO_INFO("End of file \"%s\"", afn.c_get());
33653365
}
33663366
return;
33673367
}
@@ -3450,8 +3450,8 @@ void Audio::processWebStream() {
34503450
}
34513451

34523452
if(m_f_eof) {
3453-
AUDIO_INFO("End of webstream: \"%s\"", m_lastHost.get());
3454-
if(audio_eof_stream) audio_eof_stream(m_lastHost.get());
3453+
AUDIO_INFO("End of webstream: \"%s\"", m_lastHost.c_get());
3454+
if(audio_eof_stream) audio_eof_stream(m_lastHost.c_get());
34553455
stopSong();
34563456
}
34573457
}
@@ -3564,12 +3564,12 @@ void Audio::processWebFile() {
35643564

35653565
stopSong();
35663566
if(m_f_tts) {
3567-
AUDIO_INFO("End of speech \"%s\"", m_speechtxt.get());
3568-
if(audio_eof_speech) audio_eof_speech(m_speechtxt.get());
3567+
AUDIO_INFO("End of speech \"%s\"", m_speechtxt.c_get());
3568+
if(audio_eof_speech) audio_eof_speech(m_speechtxt.c_get());
35693569
}
35703570
else {
3571-
AUDIO_INFO("End of webstream: \"%s\"", m_lastHost.get());
3572-
if(audio_eof_stream) audio_eof_stream(m_lastHost.get());
3571+
AUDIO_INFO("End of webstream: \"%s\"", m_lastHost.c_get());
3572+
if(audio_eof_stream) audio_eof_stream(m_lastHost.c_get());
35733573
}
35743574
return;
35753575
}

0 commit comments

Comments
 (0)