10 #ifndef PLAYD_AUDIO_SOURCE_SNDFILE_HPP 11 #define PLAYD_AUDIO_SOURCE_SNDFILE_HPP 20 #include "../audio_source.hpp" 21 #include "../sample_formats.hpp" 33 SndfileAudioSource(
const std::string &path);
36 ~SndfileAudioSource();
38 DecodeResult
Decode()
override;
39 std::uint64_t
Seek(std::uint64_t position)
override;
49 std::vector<int32_t> buffer;
52 #endif // WITH_SNDFILE 53 #endif // PLAYD_AUDIO_SOURCE_SNDFILE_HPP virtual DecodeResult Decode()=0
Performs a round of decoding.
An object responsible for decoding an audio file.
virtual std::uint8_t ChannelCount() const =0
Returns the channel count.
virtual SampleFormat OutputSampleFormat() const =0
Returns the output sample format.
virtual std::uint64_t Seek(std::uint64_t position)=0
Seeks to the given position, in samples.
virtual std::uint32_t SampleRate() const =0
Returns the sample rate.