diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-11-23 17:15:06 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-11-23 17:15:06 +1100 |
| commit | a7df2855889055976956a58d2a36f23626371ee9 (patch) | |
| tree | 16e180e57f84474acaeb1893208cc07e278af6f4 /src/codecs/include/mad.hpp | |
| parent | dfa9ab6e04689b99267092e016a91d9254f94cd8 (diff) | |
| download | tangara-fw-a7df2855889055976956a58d2a36f23626371ee9.tar.gz | |
Mostly done pipeline arch. Now onto cleanup and building.
Diffstat (limited to 'src/codecs/include/mad.hpp')
| -rw-r--r-- | src/codecs/include/mad.hpp | 32 |
1 files changed, 17 insertions, 15 deletions
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 |
