diff data/fileio/WavFileReader.cpp @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents cc27f35aa75c
children 843f67be0ed9
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp	Tue Mar 03 17:09:19 2015 +0000
+++ b/data/fileio/WavFileReader.cpp	Wed Mar 04 12:01:04 2015 +0000
@@ -136,13 +136,13 @@
         return;
     }
 
-    if ((long)start >= m_fileInfo.frames) {
+    if (start >= m_fileInfo.frames) {
 //        SVDEBUG << "WavFileReader::getInterleavedFrames: " << start
 //                  << " > " << m_fileInfo.frames << endl;
 	return;
     }
 
-    if (long(start + count) > m_fileInfo.frames) {
+    if (start + count > m_fileInfo.frames) {
 	count = m_fileInfo.frames - start;
     }