Class AudioResourceFile

Inheritance Relationships

Base Type

Class Documentation

class AudioResourceFile : public ResourceFile

Representation of an audio file. Only .wav files are supported.

Public Functions

AudioResourceFile(AudioResourceFile&)
AudioResourceFile(AudioResourceFile&&)
~AudioResourceFile()
void reimport()

Reload the file buffer from disk.

const char *getAudioData() const
ALsizei getAudioDataSize() const

Get size of decompressed audio data.

ALenum getFormat() const

Returns the same enum value that OpenAL uses.

float getFrequency() const
int getBitDepth() const
int getChannels() const
float getDuration() const

Get the duration of the audio in seconds.