class
#include <nCine/Audio/AudioStream.h>
AudioStream OpenAL audio stream.
Constructors, destructors, conversion operators
Public functions
- auto bufferId() const -> unsigned int
- Returns the OpenAL id of the currently playing buffer, or 0 if not.
- auto bytesPerSample() const -> int
- Returns the number of bytes per sample.
- auto numChannels() const -> int
- Returns the number of audio channels.
- auto frequency() const -> int
- Returns the samples frequency.
- auto numSamples() const -> unsigned long int
- Returns number of samples.
- auto duration() const -> float
- Returns the duration in seconds.
- auto bufferSize() const -> unsigned long
- Returns the size of the loaded buffer in bytes.
- auto numStreamSamples() const -> unsigned long int
- Returns the number of samples in the streaming buffer.
- auto streamBufferSize() const -> int
- Returns the size of the streaming buffer in bytes.
- auto enqueue(unsigned int source, bool looping) -> bool
- Enqueues new buffers and unqueues processed ones.
- void stop(unsigned int source)
- Unqueues any left buffer and rewinds the loader.
- auto isLooping() const -> bool
- Queries the looping property of the stream.
- void setLooping(bool value)
- Sets stream looping property.