Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Latency ¶ added in v0.2.0
Latency is a type of OPUS codec frame duration.
const ( Latency2500us Latency = Latency(2500 * time.Microsecond) Latency5ms Latency = Latency(5 * time.Millisecond) Latency10ms Latency = Latency(10 * time.Millisecond) Latency20ms Latency = Latency(20 * time.Millisecond) Latency40ms Latency = Latency(40 * time.Millisecond) Latency60ms Latency = Latency(60 * time.Millisecond) )
Latency values available in OPUS codec.
type Params ¶
type Params struct { codec.BaseParams // ChannelMixer is a mixer to be used if number of given and expected channels differ. ChannelMixer mixer.ChannelMixer // Expected latency of the codec. Latency Latency }
Params stores opus specific encoding parameters.
func (*Params) BuildAudioEncoder ¶
BuildAudioEncoder builds opus encoder with given params
Click to show internal directories.
Click to hide internal directories.