AbstractSoundSource

Base class of a sound source.

Members

Functions

copySamples
size_t copySamples(size_t channel, size_t start, Sample[] buffer)

Fill buffer with samples from channel starting with the position start.

getNumChannels
size_t getNumChannels()

Returns number of channels per sample.

getSampleRate
uint getSampleRate()

Returns number of samples per second.

getSamples
const(Sample)[] getSamples(size_t channel, size_t start, size_t maxLength)

Retrieve a slice of an internal buffer containing the samples. Only available if procedural is false.

procedural
bool procedural()

If true, getSamples is not available - samples can only be read with copySamples.

Meta