Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #525 from Arakis/patch-1

Update mcs/class/System/System.Media/AudioData.cs
  • Loading branch information...
commit dbb9f0f1343c4250563fdd77740305e7424fa2d6 2 parents 770c5fa + 146be1e
@marek-safar marek-safar authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mcs/class/System/System.Media/AudioData.cs
View
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.