Permalink
Browse files

Merge pull request #525 from Arakis/patch-1

Update mcs/class/System/System.Media/AudioData.cs
  • Loading branch information...
marek-safar committed Dec 21, 2012
2 parents 770c5fa + 146be1e commit dbb9f0f1343c4250563fdd77740305e7424fa2d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 mcs/class/System/System.Media/AudioData.cs
@@ -1,4 +1,3 @@
-
using System;
using System.IO;
using System.Runtime.InteropServices;
@@ -101,6 +100,7 @@ class WavData : AudioData {
byte_rate |= buffer [idx++] << 16;
byte_rate |= buffer [idx++] << 24;
// int block_align = buffer [idx++] | (buffer [idx++] << 8);
+ idx += 2; //because, the above line is commented out
int sign_bits = buffer [idx++] | (buffer [idx++] << 8);
switch (sign_bits) {

0 comments on commit dbb9f0f

Please sign in to comment.