summaryrefslogtreecommitdiff
path: root/src/audio/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/include')
-rw-r--r--src/audio/include/audio_events.hpp2
-rw-r--r--src/audio/include/fatfs_audio_input.hpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/audio/include/audio_events.hpp b/src/audio/include/audio_events.hpp
index 5af419ab..6b986462 100644
--- a/src/audio/include/audio_events.hpp
+++ b/src/audio/include/audio_events.hpp
@@ -31,7 +31,7 @@ struct QueueUpdate : tinyfsm::Event {
};
struct PlayFile : tinyfsm::Event {
- std::string filename;
+ std::pmr::string filename;
};
struct VolumeChanged : tinyfsm::Event {};
diff --git a/src/audio/include/fatfs_audio_input.hpp b/src/audio/include/fatfs_audio_input.hpp
index b67d29dc..b7b1d18e 100644
--- a/src/audio/include/fatfs_audio_input.hpp
+++ b/src/audio/include/fatfs_audio_input.hpp
@@ -37,8 +37,8 @@ class FatfsAudioInput : public IAudioSource {
* Immediately cease reading any current source, and begin reading from the
* given file path.
*/
- auto SetPath(std::future<std::optional<std::string>>) -> void;
- auto SetPath(const std::string&) -> void;
+ auto SetPath(std::future<std::optional<std::pmr::string>>) -> void;
+ auto SetPath(const std::pmr::string&) -> void;
auto SetPath() -> void;
auto HasNewStream() -> bool override;
@@ -48,7 +48,7 @@ class FatfsAudioInput : public IAudioSource {
FatfsAudioInput& operator=(const FatfsAudioInput&) = delete;
private:
- auto OpenFile(const std::string& path) -> bool;
+ auto OpenFile(const std::pmr::string& path) -> bool;
auto ContainerToStreamType(database::Container)
-> std::optional<codecs::StreamType>;
@@ -60,7 +60,7 @@ class FatfsAudioInput : public IAudioSource {
SemaphoreHandle_t has_new_stream_;
- std::unique_ptr<database::FutureFetcher<std::optional<std::string>>>
+ std::unique_ptr<database::FutureFetcher<std::optional<std::pmr::string>>>
pending_path_;
};