Mercurial > hg > svcore
comparison data/model/WaveFileModel.cpp @ 1042:16dc7307d43a cxx11
More build fixes
author | Chris Cannam |
---|---|
date | Wed, 04 Mar 2015 13:52:48 +0000 |
parents | 843f67be0ed9 |
children | 48e4ffa9fb48 |
comparison
equal
deleted
inserted
replaced
1041:843f67be0ed9 | 1042:16dc7307d43a |
---|---|
731 } | 731 } |
732 | 732 |
733 means[rangeIndex] += fabsf(sample); | 733 means[rangeIndex] += fabsf(sample); |
734 } | 734 } |
735 } | 735 } |
736 | 736 |
737 //!!! this looks like a ludicrous way to do synchronisation | |
737 QMutexLocker locker(&m_model.m_mutex); | 738 QMutexLocker locker(&m_model.m_mutex); |
738 | 739 |
739 for (int ct = 0; ct < 2; ++ct) { | 740 for (int ct = 0; ct < 2; ++ct) { |
740 | 741 |
741 if (++count[ct] == cacheBlockSize[ct]) { | 742 if (++count[ct] == cacheBlockSize[ct]) { |