// Token: 0x0600047F RID: 1151 RVA: 0x00016978 File Offset: 0x00014B78
        public static float[] DecompressAudio(byte[] data, int samples, int channels, bool threeD, global::BandMode mode, MoPhoGames.USpeak.Codec.ICodec Codec, float gain)
        {
            int frequency = 4000;

            if (mode == global::BandMode.Narrow)
            {
                frequency = 8000;
            }
            else if (mode == global::BandMode.Wide)
            {
                frequency = 16000;
            }
            short[] array = Codec.Decode(data, mode);
            USpeakAudioClipCompressor.tmp.Clear();
            USpeakAudioClipCompressor.tmp.AddRange(array);
            MoPhoGames.USpeak.Core.Utils.USpeakPoolUtils.Return(array);
            return(USpeakAudioClipConverter.ShortsToAudioData(USpeakAudioClipCompressor.tmp.ToArray(), channels, frequency, threeD, gain));
        }
 // Token: 0x0600047E RID: 1150 RVA: 0x00016928 File Offset: 0x00014B28
 public static byte[] CompressAudioData(float[] samples, int channels, out int sample_count, global::BandMode mode, MoPhoGames.USpeak.Codec.ICodec Codec, float gain = 1f)
 {
     USpeakAudioClipCompressor.data.Clear();
     sample_count = 0;
     short[] d     = USpeakAudioClipConverter.AudioDataToShorts(samples, channels, gain);
     byte[]  array = Codec.Encode(d, mode);
     MoPhoGames.USpeak.Core.Utils.USpeakPoolUtils.Return(d);
     USpeakAudioClipCompressor.data.AddRange(array);
     MoPhoGames.USpeak.Core.Utils.USpeakPoolUtils.Return(array);
     return(USpeakAudioClipCompressor.data.ToArray());
 }