OpusResampler

Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

Quality
alias Quality = int
Undocumented in source.

Enums

Error
enum Error
Undocumented in source.
Fastest
anonymousenum Fastest
Undocumented in source.

Functions

deinit
void deinit()
Undocumented in source. Be warned that the author may not have intended to support it.
getChans
uint getChans()
Undocumented in source. Be warned that the author may not have intended to support it.
getInRate
uint getInRate()
Undocumented in source. Be warned that the author may not have intended to support it.
getOutRate
uint getOutRate()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

inited
bool inited()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

swrconvert
int swrconvert(float** outbuf, int outframes, const(float)** inbuf, int inframes)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

errorStr
string errorStr(int err)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Data
struct Data
Undocumented in source.

Meta