コード例 #1
0
        public static Class16 smethod_2(string string_0)
        {
            Class16 result;

            using (GenericAudioStream stream = AudioManager.getAudioStream(string_0))
            {
                result = stream.vmethod_1();
            }
            return(result);
        }
コード例 #2
0
ファイル: MP3Output.cs プロジェクト: no1mann/Open-GHTCP
 public MP3Output(GenericAudioStream stream1_1, bool bool_1)
 {
     if (stream1_1.Length <= 0L)
     {
         throw new Exception("WinMM2Player: Invalid Stream.");
     }
     this.class16_0 = stream1_1.vmethod_1();
     if (this.class16_0.waveFormat_0.waveFormatTag_0 != WaveFormatTag.PCM && this.class16_0.waveFormat_0.waveFormatTag_0 != WaveFormatTag.IEEEFloat)
     {
         throw new Exception("WinMM2Player: Only PCM is supported.");
     }
     this.stream1_0 = stream1_1;
     this.bool_0    = bool_1;
     this.SetStartingTimeBasedOnSomeValue(0);
     this.enum1_0 = AudioStatus.ShouldStopAudio;
 }
コード例 #3
0
 public Mp3Output(GenericAudioStream stream11, bool bool1)
 {
     if (stream11.Length <= 0L)
     {
         throw new Exception("WinMM2Player: Invalid Stream.");
     }
     _class160 = stream11.vmethod_1();
     if (_class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm &&
         _class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.IeeeFloat)
     {
         throw new Exception("WinMM2Player: Only PCM is supported.");
     }
     _stream10 = stream11;
     _bool0    = bool1;
     SetStartingTimeBasedOnSomeValue(0);
     _enum10 = AudioStatus.ShouldStopAudio;
 }