Esempio n. 1
0
 private void chkAddMp3_CheckedChanged(object sender, EventArgs e)
 {
     if (mMixer != null)
     {
         if (chkAddMp3.Checked)
         {
             mMp3 = CodecFactory.Instance.GetCodec("test.mp3").ToMono().ToSampleSource();
             mMixer.AddSource(mMp3.ChangeSampleRate(mMixer.WaveFormat.SampleRate));
         }
         else
         {
             mMixer.RemoveSource(mMp3);
         }
     }
 }