Table of Contents

Class OpusEncodeStreamConfiguration

Namespace
NetCord.Gateway.Voice
Assembly
NetCord.dll
public class OpusEncodeStreamConfiguration
Inheritance
OpusEncodeStreamConfiguration
Inherited Members

Constructors

OpusEncodeStreamConfiguration()

public OpusEncodeStreamConfiguration()

Properties

FrameDuration

The duration of each Opus frame, in milliseconds. Defaults to DefaultFrameDuration. Allowed values are 2.5, 5, 10, 20, 40, 60 and 120 (the last one is only allowed for Mono).

public float? FrameDuration { get; set; }

Property Value

float?

Segment

Whether to segment the written data into Opus frames. You can set this to false if you are sure to write exactly one Opus frame at a time. Defaults to true.

public bool? Segment { get; set; }

Property Value

bool?