AudioSpecs

Used to set audio specifications, etc.

Note on buffer length: When requesting, only one of the bufferSize parameters have to be set. If both are set, then bufferSize_slmp takes priority. If neither are set, then the library tries to request a recommended buffer size. On returning, both are set to reflect on the current specifications.

Members

Functions

bits
uint bits()

Returns the number of bits per channel, including padding.

mirrorBufferSizes
void mirrorBufferSizes()

Mirrors the buffer sizes if one is set to T.init.

toString
string toString()

Returns a string representation of this struct.

Variables

bufferSize_slmp
uint bufferSize_slmp;

The length of the audio buffer in samples. See note on buffer length.

bufferSize_time
Duration bufferSize_time;

The length of the audio buffer in a given time. See note on buffer length.

format
SampleFormat format;

The format of the audio

inputChannels
short inputChannels;

The number of input channels.

outputChannels
short outputChannels;

The number of output channels.

sampleRate
int sampleRate;

The sample rate of the specified stream.

Meta