24#include "utility/sound/decoder/audio_decoder.hpp"
25#include "utility/sound/audio_buffer.hpp"
27namespace utility::sound
63 bool canDecode(
const std::string &filePath)
const override;
73 bool canDecode(AudioDecoderType type)
const override;
87 std::shared_ptr<AudioBuffer>
88 decode(std::shared_ptr<utility::File> file)
override;
Abstract base class for audio decoders.
Decoder implementation for Waveform Audio File Format (WAV) files.
bool canDecode(const std::string &filePath) const override
Determines whether the specified file can be decoded.
WAVDecoder()
Creates a WAV decoder instance.
std::shared_ptr< AudioBuffer > decode(std::shared_ptr< utility::File > file) override
Decodes a WAV file into an AudioBuffer.
~WAVDecoder() override
Destroys the WAV decoder instance.