Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1039:b14064bd1f97 | 1040:a1cd5abcb38b |
---|---|
134 | 134 |
135 if (!m_file || !m_channelCount) { | 135 if (!m_file || !m_channelCount) { |
136 return; | 136 return; |
137 } | 137 } |
138 | 138 |
139 if ((long)start >= m_fileInfo.frames) { | 139 if (start >= m_fileInfo.frames) { |
140 // SVDEBUG << "WavFileReader::getInterleavedFrames: " << start | 140 // SVDEBUG << "WavFileReader::getInterleavedFrames: " << start |
141 // << " > " << m_fileInfo.frames << endl; | 141 // << " > " << m_fileInfo.frames << endl; |
142 return; | 142 return; |
143 } | 143 } |
144 | 144 |
145 if (long(start + count) > m_fileInfo.frames) { | 145 if (start + count > m_fileInfo.frames) { |
146 count = m_fileInfo.frames - start; | 146 count = m_fileInfo.frames - start; |
147 } | 147 } |
148 | 148 |
149 sf_count_t readCount = 0; | 149 sf_count_t readCount = 0; |
150 | 150 |