![]() |
nCine 2022.04.r504-20bd01e
A cross-platform 2D game engine
|
Audio stream class. More...
#include <AudioStream.h>
Public Member Functions | |
unsigned int | bufferId () const |
Returns the OpenAL id of the currently playing buffer, or 0 if not. | |
int | bytesPerSample () const |
Returns the number of bytes per sample. | |
int | numChannels () const |
Returns the number of audio channels. | |
int | frequency () const |
Returns the samples frequency. | |
unsigned long int | numSamples () const |
Returns number of samples. | |
float | duration () const |
Returns the duration in seconds. | |
unsigned long | bufferSize () const |
Returns the size of the loaded buffer in bytes. | |
unsigned long int | numSamplesInStreamBuffer () const |
Returns the number of samples in the streaming buffer. | |
int | streamBufferSize () const |
Returns the size of the streaming buffer in bytes. | |
unsigned int | totalProcessedBuffers () const |
Returns the number of processed buffers since first enqueue. | |
bool | enqueue (unsigned int source, bool looping) |
Enqueues new buffers and unqueues processed ones. | |
void | stop (unsigned int source) |
Unqueues any left buffer and rewinds the loader. | |
Friends | |
class | AudioStreamPlayer |
Audio stream class.
bool ncine::AudioStream::enqueue | ( | unsigned int | source, |
bool | looping | ||
) |
Enqueues new buffers and unqueues processed ones.