SeekableSound

Sound that can be seeked

Members

Functions

opIndex
float opIndex(uint chan, ulong pos)
Undocumented in source.
opIndexAssign
float opIndexAssign(float sample, uint chan, ulong pos)
Undocumented in source.

Properties

duration
double duration [@property getter]

Duration, in seconds

size
ulong size [@property getter]

Number of samples

Inherited Members

From StreamedSound

channels
uint channels [@property getter]

Number of channels per sample

sampleRate
uint sampleRate [@property getter]

Number of samples per second, in Hz

bitDepth
uint bitDepth [@property getter]

Number of bits in each sample channel

sampleSize
uint sampleSize [@property getter]

Number of bytes in each sample (bitDepth / 8 * channels)

sampleFormat
SampleFormat sampleFormat [@property getter]

Sample format

stream
ulong stream(ubyte[] buffer)

Fill in the buffer with next portion of sound data. Function returns actual number of bytes written. At the end of a stream, zero is returned.

reset
void reset()

Return to the start of a stream

Meta