fm.liveswitch.opus.EncoderConfig Class Reference

Configuration for the Opus encoder. More...

Public Member Functions

fm.liveswitch.opus.EncoderConfig deepCopy ()
 Gets a deep copy of this configuration. More...
 
 EncoderConfig ()
 Creates a new copy of the Opus encoder configurations with default values. More...
 
fm.liveswitch.opus.ApplicationType getApplication ()
 Gets a value that maps to "OPUS_SET_APPLICATION". More...
 
fm.liveswitch.opus.Bandwidth getBandwidth ()
 Gets a value that maps to "OPUS_SET_BANDWIDTH". More...
 
int getComplexity ()
 Gets a value that maps to "OPUS_SET_COMPLEXITY". More...
 
int getDtx ()
 Gets a value that maps to "OPUS_SET_DTX". More...
 
fm.liveswitch.opus.ExpertFrameDuration getExpertFrameDuration ()
 Gets a value that maps to "OPUS_SET_EXPERT_FRAME_DURATION". More...
 
int getForceChannels ()
 Gets a value that maps to "OPUS_SET_FORCE_CHANNELS". More...
 
boolean getForwardErrorCorrection ()
 Gets a value that maps to "OPUS_SET_INBAND_FEC". More...
 
boolean getIsPredictionDisabled ()
 Gets a value that maps to "OPUS_SET_PREDICTION_DISABLED". More...
 
boolean getIsVbr ()
 Gets a value that maps to "OPUS_SET_VBR". More...
 
fm.liveswitch.opus.Bandwidth getMaxBandwidth ()
 Gets a value that maps to "OPUS_SET_MAX_BANDWIDTH". More...
 
int getPacketLossPercent ()
 Gets a value that maps to "OPUS_SET_PACKET_LOSS_PERC". More...
 
fm.liveswitch.opus.Signal getSignal ()
 Gets a value that maps to "OPUS_SET_SIGNAL". More...
 
boolean getUseConstrainedVBR ()
 Gets a value that maps to "OPUS_SET_VBR_CONSTRAINT". More...
 
void setApplication (fm.liveswitch.opus.ApplicationType value)
 Sets a value that maps to "OPUS_SET_APPLICATION". More...
 
void setBandwidth (fm.liveswitch.opus.Bandwidth value)
 Sets a value that maps to "OPUS_SET_BANDWIDTH". More...
 
void setComplexity (int value)
 Sets a value that maps to "OPUS_SET_COMPLEXITY". More...
 
void setDtx (int value)
 Sets a value that maps to "OPUS_SET_DTX". More...
 
void setExpertFrameDuration (fm.liveswitch.opus.ExpertFrameDuration value)
 Sets a value that maps to "OPUS_SET_EXPERT_FRAME_DURATION". More...
 
void setForceChannels (int value)
 Sets a value that maps to "OPUS_SET_FORCE_CHANNELS". More...
 
void setForwardErrorCorrection (boolean value)
 Sets a value that maps to "OPUS_SET_INBAND_FEC". More...
 
void setIsPredictionDisabled (boolean value)
 Sets a value that maps to "OPUS_SET_PREDICTION_DISABLED". More...
 
void setIsVbr (boolean value)
 Sets a value that maps to "OPUS_SET_VBR". More...
 
void setMaxBandwidth (fm.liveswitch.opus.Bandwidth value)
 Sets a value that maps to "OPUS_SET_MAX_BANDWIDTH". More...
 
void setPacketLossPercent (int value)
 Sets a value that maps to "OPUS_SET_PACKET_LOSS_PERC". More...
 
void setSignal (fm.liveswitch.opus.Signal value)
 Sets a value that maps to "OPUS_SET_SIGNAL". More...
 
void setUseConstrainedVBR (boolean value)
 Sets a value that maps to "OPUS_SET_VBR_CONSTRAINT". More...
 

Static Public Member Functions

static int getAuto ()
 Gets the integral value that maps to the Opus "OPUS_AUTO" constant. More...
 

Detailed Description

Configuration for the Opus encoder.

Properties map to Opus controls. http://www.opus-codec.org/

Constructor & Destructor Documentation

◆ EncoderConfig()

fm.liveswitch.opus.EncoderConfig.EncoderConfig ( )

Creates a new copy of the Opus encoder configurations with default values.

Member Function Documentation

◆ deepCopy()

fm.liveswitch.opus.EncoderConfig fm.liveswitch.opus.EncoderConfig.deepCopy ( )

Gets a deep copy of this configuration.

◆ getApplication()

fm.liveswitch.opus.ApplicationType fm.liveswitch.opus.EncoderConfig.getApplication ( )

Gets a value that maps to "OPUS_SET_APPLICATION".

◆ getAuto()

static int fm.liveswitch.opus.EncoderConfig.getAuto ( )
static

Gets the integral value that maps to the Opus "OPUS_AUTO" constant.

Several int configuration properties can be set to this value.

◆ getBandwidth()

fm.liveswitch.opus.Bandwidth fm.liveswitch.opus.EncoderConfig.getBandwidth ( )

Gets a value that maps to "OPUS_SET_BANDWIDTH".

◆ getComplexity()

int fm.liveswitch.opus.EncoderConfig.getComplexity ( )

Gets a value that maps to "OPUS_SET_COMPLEXITY".

◆ getDtx()

int fm.liveswitch.opus.EncoderConfig.getDtx ( )

Gets a value that maps to "OPUS_SET_DTX".

◆ getExpertFrameDuration()

fm.liveswitch.opus.ExpertFrameDuration fm.liveswitch.opus.EncoderConfig.getExpertFrameDuration ( )

Gets a value that maps to "OPUS_SET_EXPERT_FRAME_DURATION".

◆ getForceChannels()

int fm.liveswitch.opus.EncoderConfig.getForceChannels ( )

Gets a value that maps to "OPUS_SET_FORCE_CHANNELS".

◆ getForwardErrorCorrection()

boolean fm.liveswitch.opus.EncoderConfig.getForwardErrorCorrection ( )

Gets a value that maps to "OPUS_SET_INBAND_FEC".

◆ getIsPredictionDisabled()

boolean fm.liveswitch.opus.EncoderConfig.getIsPredictionDisabled ( )

Gets a value that maps to "OPUS_SET_PREDICTION_DISABLED".

◆ getIsVbr()

boolean fm.liveswitch.opus.EncoderConfig.getIsVbr ( )

Gets a value that maps to "OPUS_SET_VBR".

◆ getMaxBandwidth()

fm.liveswitch.opus.Bandwidth fm.liveswitch.opus.EncoderConfig.getMaxBandwidth ( )

Gets a value that maps to "OPUS_SET_MAX_BANDWIDTH".

◆ getPacketLossPercent()

int fm.liveswitch.opus.EncoderConfig.getPacketLossPercent ( )

Gets a value that maps to "OPUS_SET_PACKET_LOSS_PERC".

◆ getSignal()

fm.liveswitch.opus.Signal fm.liveswitch.opus.EncoderConfig.getSignal ( )

Gets a value that maps to "OPUS_SET_SIGNAL".

◆ getUseConstrainedVBR()

boolean fm.liveswitch.opus.EncoderConfig.getUseConstrainedVBR ( )

Gets a value that maps to "OPUS_SET_VBR_CONSTRAINT".

◆ setApplication()

void fm.liveswitch.opus.EncoderConfig.setApplication ( fm.liveswitch.opus.ApplicationType  value)

Sets a value that maps to "OPUS_SET_APPLICATION".

◆ setBandwidth()

void fm.liveswitch.opus.EncoderConfig.setBandwidth ( fm.liveswitch.opus.Bandwidth  value)

Sets a value that maps to "OPUS_SET_BANDWIDTH".

◆ setComplexity()

void fm.liveswitch.opus.EncoderConfig.setComplexity ( int  value)

Sets a value that maps to "OPUS_SET_COMPLEXITY".

◆ setDtx()

void fm.liveswitch.opus.EncoderConfig.setDtx ( int  value)

Sets a value that maps to "OPUS_SET_DTX".

◆ setExpertFrameDuration()

void fm.liveswitch.opus.EncoderConfig.setExpertFrameDuration ( fm.liveswitch.opus.ExpertFrameDuration  value)

Sets a value that maps to "OPUS_SET_EXPERT_FRAME_DURATION".

◆ setForceChannels()

void fm.liveswitch.opus.EncoderConfig.setForceChannels ( int  value)

Sets a value that maps to "OPUS_SET_FORCE_CHANNELS".

◆ setForwardErrorCorrection()

void fm.liveswitch.opus.EncoderConfig.setForwardErrorCorrection ( boolean  value)

Sets a value that maps to "OPUS_SET_INBAND_FEC".

◆ setIsPredictionDisabled()

void fm.liveswitch.opus.EncoderConfig.setIsPredictionDisabled ( boolean  value)

Sets a value that maps to "OPUS_SET_PREDICTION_DISABLED".

◆ setIsVbr()

void fm.liveswitch.opus.EncoderConfig.setIsVbr ( boolean  value)

Sets a value that maps to "OPUS_SET_VBR".

◆ setMaxBandwidth()

void fm.liveswitch.opus.EncoderConfig.setMaxBandwidth ( fm.liveswitch.opus.Bandwidth  value)

Sets a value that maps to "OPUS_SET_MAX_BANDWIDTH".

◆ setPacketLossPercent()

void fm.liveswitch.opus.EncoderConfig.setPacketLossPercent ( int  value)

Sets a value that maps to "OPUS_SET_PACKET_LOSS_PERC".

◆ setSignal()

void fm.liveswitch.opus.EncoderConfig.setSignal ( fm.liveswitch.opus.Signal  value)

Sets a value that maps to "OPUS_SET_SIGNAL".

◆ setUseConstrainedVBR()

void fm.liveswitch.opus.EncoderConfig.setUseConstrainedVBR ( boolean  value)

Sets a value that maps to "OPUS_SET_VBR_CONSTRAINT".