diff options
| author | Will Gallia <wgallia@gmail.com> | 2014-10-16 00:23:54 +0100 |
|---|---|---|
| committer | Will Gallia <wgallia@gmail.com> | 2014-10-16 00:23:54 +0100 |
| commit | 57babac2fd567dff753a730de8d888d4795a2ec5 (patch) | |
| tree | f3ee2ada8d929447fd4d979cd17c46efdfbf592e /maximilian.cpp | |
| parent | bbe04a0f9254e81ca6be8a23164fb3e8743e6c82 (diff) | |
fixed wav file reading to account for extra bytes in some format chunks
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index eff0fe8..09ef764 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -602,7 +602,7 @@ bool maxiSample::read() //ignore any extra chunks char chunkID[5]=""; chunkID[4] = 0; - int filePos = 36; + int filePos = 20 + mySubChunk1Size; while(!datafound && !inFile.eof()) { inFile.seekg(filePos, ios::beg); inFile.read((char*) &chunkID, sizeof(char) * 4); |
