25 #ifndef CPP3DS_SOUNDFILEREADERWAV_HPP
26 #define CPP3DS_SOUNDFILEREADERWAV_HPP
31 #include <cpp3ds/Audio/SoundFileReader.hpp>
43 class SoundFileReaderWav :
public SoundFileReader
55 static bool check(InputStream& stream);
83 virtual void seek(Uint64 sampleOffset);
94 virtual Uint64
read(Int16* samples, Uint64 maxCount);
106 bool parseHeader(Info& info);
111 InputStream* m_stream;
112 unsigned int m_bytesPerSample;
121 #endif // CPP3DS_SOUNDFILEREADERWAV_HPP
virtual Uint64 read(Int16 *samples, Uint64 maxCount)=0
Read audio samples from the open file.
virtual bool open(InputStream &stream, Info &info)=0
Open a sound file for reading.
virtual void seek(Uint64 sampleOffset)=0
Change the current read position to the given sample offset.