public SmartSample(MasterVolume volume, Sound sound, AudioFileReader reader)
        {
            _volume = volume;
            _sound  = sound;
            _reader = reader;

            var sampleProvider = ConvertWaveProviderIntoSampleProvider(_reader);

            if (sampleProvider.WaveFormat.Channels == 1)
            {
                sampleProvider = new MonoToStereoSampleProvider(sampleProvider);
            }
            WaveFormat      = sampleProvider.WaveFormat;
            _preVolumeMeter = new MeteringSampleProvider(sampleProvider);
            _volumeProvider = new VolumeSampleProvider(_preVolumeMeter);
        }
 public SmartSample(MasterVolume volume, Sound sound, string fileName) : this(volume, sound, new AudioFileReader(fileName))
 {
 }