public static void PlaySound(string fileName)
 {
     var disposables = new CompositeDisposable();
     var sampleProvider = GetSampleProvider(fileName, disposables);
     var wrapper = new AutoDisposeSampleProvider(sampleProvider, (IDisposable)disposables);
     AddMixerInput(wrapper);
 }
Beispiel #2
0
        public static void PlaySound(string fileName)
        {
            var disposables    = new CompositeDisposable();
            var sampleProvider = GetSampleProvider(fileName, disposables);
            var wrapper        = new AutoDisposeSampleProvider(sampleProvider, (IDisposable)disposables);

            AddMixerInput(wrapper);
        }