25 #ifndef CPP3DS_SOUNDFILEREADER_HPP
26 #define CPP3DS_SOUNDFILEREADER_HPP
31 #include <cpp3ds/Config.hpp>
88 virtual void seek(Uint64 sampleOffset) = 0;
99 virtual Uint64
read(Int16* samples, Uint64 maxCount) = 0;
105 #endif // CPP3DS_SOUNDFILEREADER_HPP
Uint64 sampleCount
Total number of samples in the file.
virtual Uint64 read(Int16 *samples, Uint64 maxCount)=0
Read audio samples from the open file.
unsigned int sampleRate
Samples rate of the sound, in samples per second.
virtual bool open(InputStream &stream, Info &info)=0
Open a sound file for reading.
unsigned int channelCount
Number of channels of the sound.
virtual void seek(Uint64 sampleOffset)=0
Change the current read position to the given sample offset.
virtual ~SoundFileReader()
Virtual destructor.
Structure holding the audio properties of a sound file.
Abstract base class for sound file decoding.