Encoder

Encoder is a wrapper around opus encoding

Constructors

this
this(int sampleRate, int channels, Application app)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

encode
ubyte[] encode(short[] pcm, int frameSize)

Encodes an array of PCM data into raw opus

setBandwidth
void setBandwidth(Bandwidth bw)

Sets the bandwidth for this encoder

setBitrate
void setBitrate(int kbps)

Sets the bitrate for this encoder (in kbps)

setInbandFEC
void setInbandFEC(bool enabled)

Sets whether inband FEC (forward error correction) is enabled for this encoder

setPacketLossPercent
void setPacketLossPercent(int percent)

Sets the predicted packet loss percent for FEC (if enabled)

Variables

encoder
OpusEncoder* encoder;
Undocumented in source.

Meta