This project has moved and is read-only. For the latest updates, please go here.

MediaFoundationReader and Volume

Aug 11, 2013 at 5:04 PM
I saw that the current preview release provides a class for reading AAC files, which is great. When I went in to abstract out the WaveProvider, so I could support this, I ran into a problem. Originally I was just using AudioFileReader, which provides a volume property. MediaFoundationReader does not.

Would it be possible to move this property up to IWaveProvider, especially since the documentation says to use volume there instead of WaveOut?
Aug 20, 2013 at 3:29 PM
pass it through a VolumeWaveProvider16, or if you go to floating point, use VolumeSampleProvider. That's what AudioFileReader is doing under the hood.