Loading...
Searching...
No Matches
InputSoundFile.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
bool openFromStream(InputStream &stream)
Open a sound file from a custom stream for reading.
bool openFromMemory(const void *data, std::size_t sizeInBytes)
Open a sound file in memory for reading.
unsigned int getChannelCount() const
Get the number of channels used by the sound.
Uint64 getSampleCount() const
Get the total number of audio samples in the file.
unsigned int getSampleRate() const
Get the sample rate of the sound.
Uint64 getSampleOffset() const
Get the read offset of the file in samples.
Uint64 read(Int16 *samples, Uint64 maxCount)
Read audio samples from the open file.
void seek(Time timeOffset)
Change the current read position to the given time offset.
void seek(Uint64 sampleOffset)
Change the current read position to the given sample offset.
bool openFromFile(const std::string &filename)
Open a sound file from the disk for reading.
Definition AlResource.hpp:35