Skip to content

Commit

Permalink
WaveChunks now are getting skipped correctly. Fixed filoe#105.
Browse files Browse the repository at this point in the history
  • Loading branch information
filoe committed Jun 12, 2016
1 parent 9935814 commit c24432f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CSCore/Codecs/WAV/WaveFileReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public WaveFileReader(Stream stream)
if (new String(reader.ReadChars(4)) == "RIFF")
{
reader.ReadInt32(); //FileLength
char[] rifftype = reader.ReadChars(4); //RiffType WAVE
reader.ReadChars(4);
}

_chunks = ReadChunks(stream);
Expand Down Expand Up @@ -158,7 +158,7 @@ private List<WaveFileChunk> ReadChunks(Stream stream)
{
_waveFormat = fmtChunk.WaveFormat;
}
else if (tmp is DataChunk)
else
{
stream.Position += tmp.ChunkDataSize;
}
Expand Down

0 comments on commit c24432f

Please sign in to comment.