QcSampleBuffer Struct
Mono PCM audio in [-1, 1]. More...
| Header: | #include <clientcore/sound/QcSampleBuffer.h> |
Public Functions
| double | seconds() const |
Public Variables
| bool | loop |
| int | sampleRate |
| std::vector<float> | samples |
Detailed Description
Immutable once rendered; shared between the mixer's voices.
Member Function Documentation
double QcSampleBuffer::seconds() const
Returns the length in seconds; 0 without a sample rate.
Member Variable Documentation
bool QcSampleBuffer::loop
Looping buffers end where they begin, so playing them back to back has no seam.
int QcSampleBuffer::sampleRate
Samples per second.
std::vector<float> QcSampleBuffer::samples
The samples, in [-1, 1].