// Token: 0x06000159 RID: 345 RVA: 0x000045C8 File Offset: 0x000027C8 public static IntPtr OpusCreateEncoder(AudioFormat audioFormat) { OpusError opusError; IntPtr result = Interop._OpusCreateEncoder(audioFormat.SampleRate, audioFormat.ChannelCount, (int)audioFormat.VoiceApplication, out opusError); if (opusError != OpusError.Ok) { throw new Exception(string.Format("Could not instantiate Opus encoder: {0} ({1}).", opusError, (int)opusError)); } return(result); }