Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Edited Unassigned: MediaFoundationReader reads less data on Windows 7 (on Windows 8.1 - OK) [16453]

$
0
0
Have got strange result of using MediaFoundationReader to extract audio on Windows 7 64-bit.

Actually, I use MediaFoundationReader for extracting WAVE data to temp file like this:

```
using (var reader = new MediaFoundationReader(sourceFilename))
{
WaveFileWriter.CreateWaveFile(copyFilename, reader);
}
```

After that I read WAVE data with WaveFileReader:

```
using (var sourceFileReader = new WaveFileReader(sourceFilename))
{
Console.WriteLine("Length:\t\t{0}", sourceFileReader.Length);
}

using (var copyFileReader = new WaveFileReader(copyFilename))
{
Console.WriteLine("Length of copy:\t{0}", copyFileReader.Length);
}
```

On Windows 8.1 I get the same data lengths, but on Windows 7 copy has end-trimmed data.

Is there a bug in NAudio or Media Foundation on Windows 7?

Test project in attachment.

![Image](http://auxmic.com/sites/default/files/pictures/naudio_test_win7_x64.png)
![Image](http://auxmic.com/sites/default/files/pictures/naudio_test_win8.1_x64.png)

Viewing all articles
Browse latest Browse all 738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>