// Token: 0x0600C6CE RID: 50894 RVA: 0x00370EDC File Offset: 0x0036F0DC public byte[] Compress(float[] sample, VoiceChatCompressionType type) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CompressSinglebeVoiceChatCompressionType_hotfix != null) { return((byte[])this.m_CompressSinglebeVoiceChatCompressionType_hotfix.call(new object[] { this, sample, type })); } BJLuaObjHelper.IsSkipLuaHotfix = false; byte[] result = null; if (type == VoiceChatCompressionType.Speex) { result = this.SpeexCompress(sample); } return(result); }
// Token: 0x0600C6CF RID: 50895 RVA: 0x00370F88 File Offset: 0x0036F188 public float[] Decompress(byte[] bytes, int sampleLength, VoiceChatCompressionType type) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_DecompressBytebeInt32VoiceChatCompressionType_hotfix != null) { return((float[])this.m_DecompressBytebeInt32VoiceChatCompressionType_hotfix.call(new object[] { this, bytes, sampleLength, type })); } BJLuaObjHelper.IsSkipLuaHotfix = false; float[] result = null; if (type == VoiceChatCompressionType.Speex) { result = this.SpeexDecompress(bytes, bytes.Length, sampleLength); } return(result); }