diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-11-15 14:40:17 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-11-15 14:40:17 +1100 |
| commit | aef2eb7566e7f8f6caf2481942ce67a31f007563 (patch) | |
| tree | 12a039f2a9e60e35c523f0c2d328de4514438df3 /src/drivers/include/audio_playback.hpp | |
| parent | 530fd15e66a2c89c0dcd6edd1b2a318958c349a4 (diff) | |
| download | tangara-fw-aef2eb7566e7f8f6caf2481942ce67a31f007563.tar.gz | |
fix build
Diffstat (limited to 'src/drivers/include/audio_playback.hpp')
| -rw-r--r-- | src/drivers/include/audio_playback.hpp | 12 |
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_; |
