Mercurial > hg > svcore
comparison data/fileio/WavFileReader.cpp @ 1258:200c60de27ca 3.0-integration
More timings and cache hit counts
author | Chris Cannam |
---|---|
date | Thu, 10 Nov 2016 09:58:28 +0000 |
parents | d8d6d01505ed |
children | 0a9193dc136b |
comparison
equal
deleted
inserted
replaced
1257:5236543343c3 | 1258:200c60de27ca |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #include "WavFileReader.h" | 16 #include "WavFileReader.h" |
17 | 17 |
18 #include "base/HitCount.h" | 18 #include "base/HitCount.h" |
19 #include "base/Profiler.h" | |
19 | 20 |
20 #include <iostream> | 21 #include <iostream> |
21 | 22 |
22 #include <QMutexLocker> | 23 #include <QMutexLocker> |
23 #include <QFileInfo> | 24 #include <QFileInfo> |
136 | 137 |
137 if (count == 0) return {}; | 138 if (count == 0) return {}; |
138 | 139 |
139 QMutexLocker locker(&m_mutex); | 140 QMutexLocker locker(&m_mutex); |
140 | 141 |
142 Profiler profiler("WavFileReader::getInterleavedFrames"); | |
143 | |
141 if (!m_file || !m_channelCount) { | 144 if (!m_file || !m_channelCount) { |
142 return {}; | 145 return {}; |
143 } | 146 } |
144 | 147 |
145 if (start >= m_fileInfo.frames) { | 148 if (start >= m_fileInfo.frames) { |