Example #1
0
 private void UpdateEncoder() => _encoder = new OpusEncoder(_bitrate, _audioApp, _packetLoss);
Example #2
0
 internal DiscordVoiceStream(DiscordVoiceSession client, int bitrate, AudioApplication application = AudioApplication.Mixed)
 {
     Session   = client;
     _encoder  = new OpusEncoder(bitrate, application, 5);
     _nextTick = -1;
 }