summaryrefslogtreecommitdiff
path: root/src/audio/include/audio_decoder.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-06-06 10:20:46 +1000
committerjacqueline <me@jacqueline.id.au>2023-06-06 10:20:46 +1000
commit8a2a2d226558d099243eea0aa9ae22b2791e0e0e (patch)
tree16c3defdb167ea7f452e5ce96118b165acf6602f /src/audio/include/audio_decoder.hpp
parentee5f662f9bb150138545ca35ef5c4896eb74daea (diff)
downloadtangara-fw-8a2a2d226558d099243eea0aa9ae22b2791e0e0e.tar.gz
Get basic audio playback going again
Diffstat (limited to 'src/audio/include/audio_decoder.hpp')
-rw-r--r--src/audio/include/audio_decoder.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio/include/audio_decoder.hpp b/src/audio/include/audio_decoder.hpp
index 5927e150..3cda0305 100644
--- a/src/audio/include/audio_decoder.hpp
+++ b/src/audio/include/audio_decoder.hpp
@@ -30,6 +30,8 @@ class AudioDecoder : public IAudioElement {
AudioDecoder();
~AudioDecoder();
+ auto NeedsToProcess() const -> bool override;
+
auto Process(const std::vector<InputStream>& inputs, OutputStream* output)
-> void override;
@@ -41,6 +43,7 @@ class AudioDecoder : public IAudioElement {
std::optional<StreamInfo::Format> current_input_format_;
std::optional<StreamInfo::Format> current_output_format_;
bool has_samples_to_send_;
+ bool has_input_remaining_;
auto ProcessStreamInfo(const StreamInfo& info) -> bool;
};