public DcaEncoder() { encoder = new OpusEncoder(48000, 2, 20, null, OpusApplication.MusicOrMixed); }
public DcaEncoder(string filename) { __filename = filename; encoder = new OpusEncoder(48000, 2, 20, null, OpusApplication.MusicOrMixed); }
private void InitializeOpusEncoder() { mainOpusEncoder = new OpusEncoder(VoiceConfig.SampleRate, VoiceConfig.Channels, VoiceConfig.FrameLengthMs, VoiceConfig.Bitrate, VoiceConfig.OpusMode); mainOpusEncoder.SetForwardErrorCorrection(true); msToSend = VoiceConfig.FrameLengthMs; }