Skip to main content
Version: 2.x

Create Encoder (Advanced)

Creates a new ODIN encoder instance with extended codec configuration parameters. In addition to the sample rate and stereo configuration, it allows specification of whether the application is intended for VoIP, a target bitrate and the encoder's expected packet loss percentage.

Inputs​

NameTypeDescription
TargetOdin EncoderThe Odin Encoder to call this function on.
In Connected Peer IdInteger64Binding id
In Sample RateIntegersamplerate for f32bit
Use StereoBooleanchannels interleaved
Application VOIPBooleanToggle codec type. Set to true for sending voice, false for anything else (like music).
Bitrate KbpsIntegerencoding bitrate
Packet Loss PercIntegerexpected packet loss percentage
Update Position Interval MSInteger64interval where pop will produce position datagram (disable 0)

Outputs​

NameTypeDescription
Return ValueOdin EncoderEncoder or null