25 #ifndef CPP3DS_SOUNDFILEREADEROGG_HPP
26 #define CPP3DS_SOUNDFILEREADEROGG_HPP
31 #include <cpp3ds/Audio/SoundFileReader.hpp>
32 #include <vorbis/vorbisfile.h>
43 class SoundFileReaderOgg :
public SoundFileReader
55 static bool check(InputStream& stream);
69 ~SoundFileReaderOgg();
80 virtual bool open(InputStream& stream, Info& info);
91 virtual void seek(Uint64 sampleOffset);
102 virtual Uint64
read(Int16* samples, Uint64 maxCount);
115 OggVorbis_File m_vorbis;
116 unsigned int m_channelCount;
124 #endif // CPP3DS_SOUNDFILEREADEROGG_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.