Loading...
Searching...
No Matches
SoundBuffer.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.
135 bool loadFromSamples(const Int16* samples, Uint64 sampleCount, unsigned int channelCount, unsigned int sampleRate);
unsigned int getChannelCount() const
Get the number of channels used by the sound.
bool loadFromFile(const std::string &filename)
Load the sound buffer from a file.
const Int16 * getSamples() const
Get the array of audio samples stored in the buffer.
bool loadFromSamples(const Int16 *samples, Uint64 sampleCount, unsigned int channelCount, unsigned int sampleRate)
Load the sound buffer from an array of audio samples.
bool saveToFile(const std::string &filename) const
Save the sound buffer to an audio file.
bool loadFromStream(InputStream &stream)
Load the sound buffer from a custom stream.
Uint64 getSampleCount() const
Get the number of samples stored in the buffer.
bool loadFromMemory(const void *data, std::size_t sizeInBytes)
Load the sound buffer from a file in memory.
Definition AlResource.hpp:35