summaryrefslogtreecommitdiff
path: root/src/drivers/include/audio_playback.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2022-11-15 14:40:17 +1100
committerjacqueline <me@jacqueline.id.au>2022-11-15 14:40:17 +1100
commitaef2eb7566e7f8f6caf2481942ce67a31f007563 (patch)
tree12a039f2a9e60e35c523f0c2d328de4514438df3 /src/drivers/include/audio_playback.hpp
parent530fd15e66a2c89c0dcd6edd1b2a318958c349a4 (diff)
downloadtangara-fw-aef2eb7566e7f8f6caf2481942ce67a31f007563.tar.gz
fix build
Diffstat (limited to 'src/drivers/include/audio_playback.hpp')
-rw-r--r--src/drivers/include/audio_playback.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/include/audio_playback.hpp b/src/drivers/include/audio_playback.hpp
index dd0f7f7a..d26fcda2 100644
--- a/src/drivers/include/audio_playback.hpp
+++ b/src/drivers/include/audio_playback.hpp
@@ -32,10 +32,10 @@ class AudioPlayback {
static auto create(std::unique_ptr<IAudioOutput> output)
-> cpp::result<std::unique_ptr<AudioPlayback>, Error>;
- AudioPlayback(std::unqiue_ptr<IAudioOutput> output,
- audio_pipeline_handle_t pipeline,
- audio_element_handle_t source_element,
- audio_event_iface_handle_t event_interface);
+ AudioPlayback(std::unique_ptr<IAudioOutput>& output,
+ audio_pipeline_handle_t pipeline,
+ audio_element_handle_t source_element,
+ audio_event_iface_handle_t event_interface);
~AudioPlayback();
/*
@@ -77,10 +77,10 @@ class AudioPlayback {
private:
PlaybackState current_state_;
- enum Decoder {NONE, MP3, AMR, OPUS, OGG, FLAC, WAV, AAC};
+ enum Decoder { NONE, MP3, AMR, OPUS, OGG, FLAC, WAV, AAC };
auto GetDecoderForFilename(std::string filename) -> Decoder;
auto CreateDecoder(Decoder decoder) -> audio_element_handle_t;
- void ReconfigurePipeline();
+ auto ReconfigurePipeline(Decoder decoder) -> void;
std::unique_ptr<IAudioOutput> output_;
std::mutex playback_lock_;