Photon Voice  v2.8
English | 日本語 | 한국
Public Member Functions | Public Attributes | Properties | List of all members
OpusEncoder Class Reference

Inherits IDisposable.

Public Member Functions

 OpusEncoder (SamplingRate inputSamplingRateHz, Channels numChannels, int bitrate, OpusApplicationType applicationType, Delay encoderDelay)
 
ArraySegment< byte > Encode (float[] pcmSamples)
 
ArraySegment< byte > Encode (short[] pcmSamples)
 
void Dispose ()
 

Public Attributes

const int BitrateMax = -1
 

Properties

SamplingRate InputSamplingRate [get]
 
Channels InputChannels [get]
 
string Version [get]
 
Delay EncoderDelay [get, set]
 Using a duration of less than 10 ms will prevent the encoder from using the LPC or hybrid modes. More...
 
int FrameSizePerChannel [get]
 
int Bitrate [get, set]
 
Bandwidth MaxBandwidth [get, set]
 
Complexity Complexity [get, set]
 
int ExpectedPacketLossPercentage [get, set]
 
SignalHint SignalHint [get, set]
 
ForceChannels ForceChannels [get, set]
 
bool UseInbandFEC [get, set]
 
bool UseUnconstrainedVBR [get, set]
 
bool DtxEnabled [get, set]
 

Property Documentation

Delay EncoderDelay
getset

Using a duration of less than 10 ms will prevent the encoder from using the LPC or hybrid modes.