|
3 | 3 | audio.cpp |
4 | 4 |
|
5 | 5 | 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 |
8 | 8 |
|
9 | 9 | Author: Wolle (schreibfaul1) |
10 | 10 | Audio library for ESP32, ESP32-S3 or ESP32-P4 |
@@ -3360,8 +3360,8 @@ void Audio::processLocalFile() { |
3360 | 3360 | m_codec = CODEC_NONE; |
3361 | 3361 |
|
3362 | 3362 | 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()); |
3365 | 3365 | } |
3366 | 3366 | return; |
3367 | 3367 | } |
@@ -3450,8 +3450,8 @@ void Audio::processWebStream() { |
3450 | 3450 | } |
3451 | 3451 |
|
3452 | 3452 | 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()); |
3455 | 3455 | stopSong(); |
3456 | 3456 | } |
3457 | 3457 | } |
@@ -3564,12 +3564,12 @@ void Audio::processWebFile() { |
3564 | 3564 |
|
3565 | 3565 | stopSong(); |
3566 | 3566 | 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()); |
3569 | 3569 | } |
3570 | 3570 | 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()); |
3573 | 3573 | } |
3574 | 3574 | return; |
3575 | 3575 | } |
|
0 commit comments