diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-03-25 17:34:41 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-03-25 17:34:41 +1100 |
| commit | 175bfc4e3e9f7aa39e084d3f1625347f1d5711ec (patch) | |
| tree | f71b458f19acca855815ab876944d48a3c5acbcb /src/audio/include/audio_decoder.hpp | |
| parent | 5c985afd258a96b68d6bd5a4fade17ed998d2c07 (diff) | |
| download | tangara-fw-175bfc4e3e9f7aa39e084d3f1625347f1d5711ec.tar.gz | |
WIP rewrie audio pipeline+fsm guts for more reliability
Diffstat (limited to 'src/audio/include/audio_decoder.hpp')
| -rw-r--r-- | src/audio/include/audio_decoder.hpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/audio/include/audio_decoder.hpp b/src/audio/include/audio_decoder.hpp index b8aac710..89f0f43c 100644 --- a/src/audio/include/audio_decoder.hpp +++ b/src/audio/include/audio_decoder.hpp @@ -20,25 +20,6 @@ namespace audio { /* - * Sample-based timer for the current elapsed playback time. - */ -class Timer { - public: - Timer(std::shared_ptr<Track>, const codecs::ICodec::OutputFormat& format, uint32_t current_seconds = 0); - - auto AddSamples(std::size_t) -> void; - - private: - std::shared_ptr<Track> track_; - - uint32_t current_seconds_; - uint32_t current_sample_in_second_; - uint32_t samples_per_second_; - - uint32_t total_duration_seconds_; -}; - -/* * Handle to a persistent task that takes bytes from the given source, decodes * them into sample::Sample (normalised to 16 bit signed PCM), and then * forwards the resulting stream to the given converter. @@ -65,7 +46,6 @@ class Decoder { std::shared_ptr<codecs::IStream> stream_; std::unique_ptr<codecs::ICodec> codec_; - std::unique_ptr<Timer> timer_; std::optional<codecs::ICodec::OutputFormat> current_format_; std::optional<IAudioOutput::Format> current_sink_format_; |
