Skip to main content
Version: 2.x

Create Encoder

Creates a new ODIN encoder instance with default settings used to encode audio captured from local sources, such as a microphone using the given sample rate and channel layout.

note

Peer id 0 will rewrite header on datagram send for connected room peer id; default bitrate 32000 (with stereo 128000), voip true (with stereo false), disabled interval, and expected packet loss of 15%

Inputs​

NameTypeDescription
TargetOdin EncoderThe Odin Encoder to call this function on.
In Peer IdInteger64binding id
In Sample RateIntegersamplerate for f32bit
Use StereoBooleanchannels interleaved

Outputs​

NameTypeDescription
Return ValueOdin EncoderEncoder or null