コード例 #1
0
ファイル: OpusCodec.cs プロジェクト: Smoothstep/VRChat
 // Token: 0x06004C39 RID: 19513 RVA: 0x001979D0 File Offset: 0x00195DD0
 public void Initialize(BandMode bandMode, BitRate bitrate, FrameDuration duration)
 {
     OpusCodec.BitRates   bitrate2 = (OpusCodec.BitRates)Enum.GetValues(typeof(OpusCodec.BitRates)).GetValue((int)bitrate);
     OpusCodec.Opus_Delay delay    = (OpusCodec.Opus_Delay)Enum.GetValues(typeof(OpusCodec.Opus_Delay)).GetValue((int)duration);
     Debug.Log(string.Concat(new string[]
     {
         "OpusCodec: Initialize (",
         bitrate2.ToString(),
         ", ",
         delay.ToString(),
         ")"
     }));
     this.InitSettings(48000, (int)bitrate2, (int)delay, FragLabs.Audio.Codecs.Opus.Application.Voip);
     this.CreateEncoders();
 }
コード例 #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = -2083580346;
                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CodecId);

                hashCode = hashCode * -1521134295 + SampleRate.GetHashCode();
                hashCode = hashCode * -1521134295 + Channels.GetHashCode();
                hashCode = hashCode * -1521134295 + DecoderGain.GetHashCode();
                hashCode = hashCode * -1521134295 + FrameDuration.GetHashCode();
                hashCode = hashCode * -1521134295 + Bitrate.GetHashCode();
                return(hashCode);
            }
        }
コード例 #3
0
ファイル: ADPCMCodec.cs プロジェクト: Smoothstep/VRChat
 // Token: 0x06004C1B RID: 19483 RVA: 0x00197516 File Offset: 0x00195916
 public void Initialize(BandMode bandMode, BitRate bitrate, FrameDuration duration)
 {
 }