Beispiel #1
0
 public AutoDisposeFileReader(AudioFileReader reader)
 {
     this.reader     = reader;
     this.WaveFormat = reader.WaveFormat;
 }
Beispiel #2
0
        public void PlaySound(string fileName)
        {
            var input = new AudioFileReader(fileName);

            AddMixerInput(new AutoDisposeFileReader(input));
        }