diff data/fileio/WavFileReader.cpp @ 232:03a24547cf3c

* Fix crash in short spectrogram paint * Fix incorrect apparent end point for waveforms
author Chris Cannam
date Wed, 14 Feb 2007 17:52:06 +0000
parents 91fdc752e540
children 96a6dd889c68
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp	Mon Feb 12 18:15:49 2007 +0000
+++ b/data/fileio/WavFileReader.cpp	Wed Feb 14 17:52:06 2007 +0000
@@ -151,6 +151,9 @@
     }
 
     for (size_t i = 0; i < count * m_fileInfo.channels; ++i) {
+        if (i >= m_bufsiz) {
+            std::cerr << "INTERNAL ERROR: WavFileReader::getInterleavedFrames: " << i << " >= " << m_bufsiz << std::endl;
+        }
 	results.push_back(m_buffer[i]);
     }