From a7df2855889055976956a58d2a36f23626371ee9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 23 Nov 2022 17:15:06 +1100 Subject: Mostly done pipeline arch. Now onto cleanup and building. --- src/codecs/include/mad.hpp | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'src/codecs/include/mad.hpp') diff --git a/src/codecs/include/mad.hpp b/src/codecs/include/mad.hpp index cfe4eab7..241ea6c3 100644 --- a/src/codecs/include/mad.hpp +++ b/src/codecs/include/mad.hpp @@ -4,23 +4,25 @@ namespace codecs { - class MadMp3Decoder : public ICodec { - public: - MadMp3Decoder(); - ~MadMp3Decoder(); +class MadMp3Decoder : public ICodec { + public: + MadMp3Decoder(); + ~MadMp3Decoder(); - auto ProcessInput(Result *res, uint8_t *input, std::size_t input_len) -> void; - auto WriteOutputSamples(Result *res, uint8_t *output, std::size_t output_length) -> void; + auto ProcessInput(Result* res, uint8_t* input, std::size_t input_len) -> void; + auto WriteOutputSamples(Result* res, + uint8_t* output, + std::size_t output_length) -> void; - private: - mad_stream stream_; - mad_frame frame_; - mad_synth synth_; + private: + mad_stream stream_; + mad_frame frame_; + mad_synth synth_; - mad_header header_; - bool has_decoded_header_; + mad_header header_; + bool has_decoded_header_; - int current_sample_ = -1; - }; + int current_sample_ = -1; +}; -} // namespace codecs +} // namespace codecs -- cgit v1.2.3