The OpenD Programming Language

OpusResampler

Undocumented in source.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

getQuality
int getQuality()

Get the conversion quality.

getRate
void getRate(uint ainRate, uint aoutRate)

Get the current input/output sampling rates (integer value).

getRatio
void getRatio(uint ratioNum, uint ratioDen)

Get the current resampling ratio. This will be reduced to the least common denominator.

inputLatency
int inputLatency()

Get the latency introduced by the resampler measured in input samples.

outputLatency
int outputLatency()

Get the latency introduced by the resampler measured in output samples.

process
Error process(Data data)

Resample (an interleaved) float array. The input and output buffers must *not* overlap. data.dataIn can be empty, but data.dataOut can't. Function will return number of consumed samples (*not* *frames*!) in data.inputSamplesUsed, and number of produced samples in data.outputSamplesUsed. You should provide enough samples for all channels, and all channels will be processed.

reset
void reset()

Reset a resampler so a new (unrelated) stream can be processed.

setQuality
Error setQuality(Quality aquality)

Set (change) the conversion quality.

setRate
Error setRate(uint ainRate, uint aoutRate)

Set (change) the input/output sampling rates (integer value).

setup
Error setup(uint chans, uint ainRate, uint aoutRate, Quality aquality)

Create a new resampler with integer input and output rates.

Meta