Example #1
0
 public DcaEncoder()
 {
     encoder = new OpusEncoder(48000, 2, 20, null, OpusApplication.MusicOrMixed);
 }
Example #2
0
 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;
 }