Skip to main content
Version: 2.x

Construct Encoder (Advanced)

Creates a new ODIN Encoder with advanced configuration options. Use this if you need to fine-tune the codec settings (bitrate, frame size, packet loss resilience) or optimize for music/high-quality audio instead of voice.

  • Node type: Callable function. Has execution pins and runs when it is reached in the event graph.
  • Menu category: Odin › Audio Pipeline
  • C++: UOdinEncoder::ConstructEncoderEx

Inputs​

NameTypeDescription
Peer IdInteger64Peer ID.
Sample RateIntegerSample rate for audio (default 48000).
StereoBooleanUse stereo channels.
Application VOIPBooleanTrue for voice optimization, false for audio/music.
Bitrate KbpsIntegerEncoding bitrate in kbps.
Packet Loss PercIntegerExpected packet loss percentage to optimize FEC.
Update Position Interval MSInteger64How often to send position updates when silent. If 0, position updates are only performed when audio is being sent.

Outputs​

NameTypeDescription
Return ValueOdin EncoderThe constructed encoder.