diff --git a/src/audio.cpp b/src/audio.cpp index 4ea9164..5f6b820 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -36,7 +36,7 @@ MP3DecoderHelix mp3Decoder; EncodedAudioStream mp3Stream(&board, &mp3Decoder); -StreamCopy copier; +StreamCopy mp3Copier; bool running = false; @@ -46,7 +46,7 @@ void audioStop() { Serial.println("[AUDIO ] STOP"); } copyErrors = 0; - copier.end(); + mp3Copier.end(); mp3Stream.end(); mp3Decoder.end(); opusDecoder.end(); @@ -93,9 +93,9 @@ bool audioBeginMP3Stream(const Entry &entry, Stream &source) { return false; } - copier.begin(mp3Stream, source); + mp3Copier.begin(mp3Stream, source); - if (copier.copy() == 0) { + if (mp3Copier.copy() == 0) { Serial.printf("[AUDIO ] [%s] Failed to copy initial data.", entry.type.c_str()); audioStop(); return false; @@ -212,7 +212,7 @@ bool audioLoop() { board.setMute(audioMute); stateBufferUpdateRequest(); } - if (copier.copy() > 0) { + if (mp3Copier.copy() > 0) { copyErrors = 0; return true; }