From a2c1dfbabddc2b4abaf8bf27c9ed9d1b99594859 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 15 Jun 2023 10:33:46 +1000 Subject: Add vorbis and flac decoders, flesh out codec interface vorbis doesn't quite work yet, not sure why. will pick it up again later. --- src/audio/audio_task.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio/audio_task.cpp') diff --git a/src/audio/audio_task.cpp b/src/audio/audio_task.cpp index 9dd7d994..eea84e45 100644 --- a/src/audio/audio_task.cpp +++ b/src/audio/audio_task.cpp @@ -126,7 +126,7 @@ void AudioTaskMain(std::unique_ptr pipeline, IAudioSink* sink) { if (sink_stream.info().bytes_in_stream == 0) { // No new bytes to sink, so skip sinking completely. - ESP_LOGI(kTag, "no bytes to sink"); + ESP_LOGW(kTag, "no bytes to sink"); continue; } -- cgit v1.2.3 From c6bb42cdd21b63accd20012373a8a0e41d8566f5 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 15 Jun 2023 10:42:28 +1000 Subject: song -> track --- src/audio/audio_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audio/audio_task.cpp') diff --git a/src/audio/audio_task.cpp b/src/audio/audio_task.cpp index eea84e45..394a55b6 100644 --- a/src/audio/audio_task.cpp +++ b/src/audio/audio_task.cpp @@ -45,7 +45,7 @@ namespace task { static const char* kTag = "task"; // The default amount of time to wait between pipeline iterations for a single -// song. +// track. static constexpr uint_fast16_t kDefaultDelayTicks = pdMS_TO_TICKS(5); static constexpr uint_fast16_t kMaxDelayTicks = pdMS_TO_TICKS(10); static constexpr uint_fast16_t kMinDelayTicks = pdMS_TO_TICKS(1); @@ -54,7 +54,7 @@ void AudioTaskMain(std::unique_ptr pipeline, IAudioSink* sink) { // The stream format for bytes currently in the sink buffer. std::optional output_format; - // How long to wait between pipeline iterations. This is reset for each song, + // How long to wait between pipeline iterations. This is reset for each track, // and readjusted on the fly to maintain a reasonable amount playback buffer. // Buffering too much will mean we process samples inefficiently, wasting CPU // time, whilst buffering too little will affect the quality of the output. -- cgit v1.2.3