hoangduit / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

Audio.Formats.WaveDecoder.AverageBitsPerSecond should be bytes, not bits #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download linqpad and this snippet (http://share.linqpad.net/2dm3sb.linq). 
The code is:

    string wavFileName = @"TODO";
    var reader = new Accord.Audio.Formats.WaveDecoder(wavFileName);
    reader.Dump("WaveDecoder");

2. Change the filename to a wav file on your machine.
3. Run the snippet.

What is the expected output? What do you see instead?
I'd expect the values of Accord.Audio.Formats.WaveDecoder.AverageBitsPerSecond 
to be eight times the value of 
SlimDX.Multimedia.WaveFormat.AverageBytesPerSecond or else the names to match. 
Instead, the values are the same (88200 in my file).

See http://i.imm.io/1kAvF.png

What version of the product are you using? On what operating system?
Accord.Audio 2.11.x, SlimDX 4.0.x on Win 8.

Please provide any additional information below.

Original issue reported on code.google.com by pckuj...@gmail.com on 19 Nov 2013 at 10:01

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issue! Will be fixed in the next release.

Original comment by cesarso...@gmail.com on 19 Nov 2013 at 10:14

GoogleCodeExporter commented 9 years ago
Fixed in release 2.12

Original comment by cesarso...@gmail.com on 6 Jan 2014 at 11:07

GoogleCodeExporter commented 9 years ago

Original comment by cesarso...@gmail.com on 12 Apr 2014 at 6:47

GoogleCodeExporter commented 9 years ago
Fixed again as detailed in https://github.com/accord-net/framework/issues/3

Original comment by cesarso...@gmail.com on 19 Aug 2014 at 8:43