From 245d9ff4b9cde1f487beed76085a52f3f2d6d26c Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 23 Jun 2023 15:32:11 +1000 Subject: add indexing to the database idk man i wrote most of this in a fugue state whilst high on the couch with my cat --- src/audio/fatfs_audio_input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audio') diff --git a/src/audio/fatfs_audio_input.cpp b/src/audio/fatfs_audio_input.cpp index ca5b02a1..894ac842 100644 --- a/src/audio/fatfs_audio_input.cpp +++ b/src/audio/fatfs_audio_input.cpp @@ -75,13 +75,13 @@ auto FatfsAudioInput::OpenFile(const std::string& path) -> bool { return false; } - auto stream_type = ContainerToStreamType(tags.encoding); + auto stream_type = ContainerToStreamType(tags.encoding()); if (!stream_type.has_value()) { ESP_LOGE(kTag, "couldn't match container to stream"); return false; } - current_container_ = tags.encoding; + current_container_ = tags.encoding(); if (*stream_type == codecs::StreamType::kPcm && tags.channels && tags.bits_per_sample && tags.channels) { -- cgit v1.2.3