24#include "utility/sound/decoder/audio_decoder.hpp"
25#include "utility/sound/audio_buffer.hpp"
27namespace utility::sound
62 bool canDecode(
const std::string &filePath)
const override;
72 bool canDecode(AudioDecoderType type)
const override;
86 std::shared_ptr<AudioBuffer>
87 decode(std::shared_ptr<utility::File> file)
override;
Abstract base class for audio decoders.
Decoder implementation for MPEG Audio Layer III (MP3) files.
bool canDecode(const std::string &filePath) const override
Determines whether the specified file can be decoded.
std::shared_ptr< AudioBuffer > decode(std::shared_ptr< utility::File > file) override
Decodes an MP3 file into an AudioBuffer.
~MP3Decoder() override
Destroys the MP3 decoder instance.
MP3Decoder()
Creates an MP3 decoder instance.