2 using System.Collections.Generic;
4 using Concentus.Structs;
8 static partial class VoipConfig
10 public const int MAX_COMPRESSED_SIZE = 40;
12 public static readonly TimeSpan SEND_INTERVAL =
new TimeSpan(0,0,0,0,20);
14 public const int FREQUENCY = 48000;
15 public const int BITRATE = 16000;
16 public const int BUFFER_SIZE = (8 * MAX_COMPRESSED_SIZE * FREQUENCY) / BITRATE;
18 public static OpusDecoder CreateDecoder()
20 return new OpusDecoder(FREQUENCY, 1);