diff options
Diffstat (limited to 'src/codecs/include/mad.hpp')
| -rw-r--r-- | src/codecs/include/mad.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/codecs/include/mad.hpp b/src/codecs/include/mad.hpp index 3b1f5757..ea16cdc8 100644 --- a/src/codecs/include/mad.hpp +++ b/src/codecs/include/mad.hpp @@ -8,6 +8,7 @@ #include <cstddef> #include <cstdint> +#include <optional> #include <string> #include <utility> @@ -24,7 +25,7 @@ class MadMp3Decoder : public ICodec { ~MadMp3Decoder(); auto CanHandleType(StreamType type) -> bool override; - auto GetOutputFormat() -> OutputFormat override; + auto GetOutputFormat() -> std::optional<OutputFormat> override; auto ResetForNewStream() -> void override; auto SetInput(cpp::span<const std::byte> input) -> void override; auto GetInputPosition() -> std::size_t override; @@ -37,9 +38,6 @@ class MadMp3Decoder : public ICodec { mad_frame frame_; mad_synth synth_; - mad_header header_; - bool has_decoded_header_; - int current_sample_; }; |
