From 4d99d22e10a3cb2a421da1618c127128816613c9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 26 Sep 2023 13:36:07 +1000 Subject: std::string -> std::pmr::string in psram --- src/audio/fatfs_audio_input.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/audio/fatfs_audio_input.cpp') diff --git a/src/audio/fatfs_audio_input.cpp b/src/audio/fatfs_audio_input.cpp index 6b032632..f71f0463 100644 --- a/src/audio/fatfs_audio_input.cpp +++ b/src/audio/fatfs_audio_input.cpp @@ -52,16 +52,17 @@ FatfsAudioInput::~FatfsAudioInput() { vSemaphoreDelete(has_new_stream_); } -auto FatfsAudioInput::SetPath(std::future> fut) +auto FatfsAudioInput::SetPath(std::future> fut) -> void { std::lock_guard guard{new_stream_mutex_}; pending_path_.reset( - new database::FutureFetcher>(std::move(fut))); + new database::FutureFetcher>( + std::move(fut))); xSemaphoreGive(has_new_stream_); } -auto FatfsAudioInput::SetPath(const std::string& path) -> void { +auto FatfsAudioInput::SetPath(const std::pmr::string& path) -> void { std::lock_guard guard{new_stream_mutex_}; if (OpenFile(path)) { xSemaphoreGive(has_new_stream_); @@ -114,7 +115,7 @@ auto FatfsAudioInput::NextStream() -> std::shared_ptr { } } -auto FatfsAudioInput::OpenFile(const std::string& path) -> bool { +auto FatfsAudioInput::OpenFile(const std::pmr::string& path) -> bool { ESP_LOGI(kTag, "opening file %s", path.c_str()); database::TrackTags tags; -- cgit v1.2.3