From 958160aa545e3d91b2a4f1a367817e73d298e8a9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 10 Aug 2023 19:12:38 +1000 Subject: Use the libspeexdsp resampler AFAICT it runs a little slower? but it's fixed point, and has much better understood audio characteristics. --- src/audio/fatfs_source.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/audio/fatfs_source.cpp') diff --git a/src/audio/fatfs_source.cpp b/src/audio/fatfs_source.cpp index 6a9aea47..58986648 100644 --- a/src/audio/fatfs_source.cpp +++ b/src/audio/fatfs_source.cpp @@ -31,7 +31,6 @@ FatfsSource::~FatfsSource() { auto FatfsSource::Read(cpp::span dest) -> ssize_t { if (f_eof(file_.get())) { - ESP_LOGI(kTag, "read from empty file"); return 0; } UINT bytes_read = 0; @@ -40,8 +39,6 @@ auto FatfsSource::Read(cpp::span dest) -> ssize_t { ESP_LOGE(kTag, "error reading from file"); return -1; } - ESP_LOGI(kTag, "read %u bytes into %p (%u)", bytes_read, dest.data(), - dest.size_bytes()); return bytes_read; } @@ -50,7 +47,6 @@ auto FatfsSource::CanSeek() -> bool { } auto FatfsSource::SeekTo(int64_t destination, SeekFrom from) -> void { - ESP_LOGI(kTag, "seeking to %llu", destination); switch (from) { case SeekFrom::kStartOfStream: f_lseek(file_.get(), destination); -- cgit v1.2.3