class
#include <nCine/Audio/AudioStream.h>
AudioStream OpenAL audio stream.
Constructors, destructors, conversion operators
Public functions
-
auto bufferId() const -> std::
uint32_t - Returns the OpenAL id of the currently playing buffer, or 0 if not.
-
auto bytesPerSample() const -> std::
int32_t - Returns the number of bytes per sample.
-
auto numChannels() const -> std::
int32_t - Returns the number of audio channels.
-
auto frequency() const -> std::
int32_t - Returns the samples frequency.
-
auto numSamples() const -> std::
int32_t - Returns number of samples.
- auto duration() const -> float
- Returns the duration in seconds.
-
auto bufferSize() const -> std::
int32_t - Returns the size of the loaded buffer in bytes.
-
auto numStreamSamples() const -> std::
int32_t - Returns the number of samples in the streaming buffer.
-
auto streamBufferSize() const -> std::
int32_t - Returns the size of the streaming buffer in bytes.
-
auto enqueue(std::
uint32_t source, bool looping) -> bool - Enqueues new buffers and unqueues processed ones.
-
void stop(std::
uint32_t 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.