Mercurial > hg > svcore
changeset 1112:4d7de68707c8 3.0-integration
Merge from branch simple-fft-model
author | Chris Cannam |
---|---|
date | Wed, 01 Jul 2015 18:31:28 +0100 |
parents | a65328f0c450 (current diff) 457a1a619c5f (diff) |
children | e80abd659922 |
files | |
diffstat | 5 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.cpp Wed Jul 01 13:27:03 2015 +0100 +++ b/data/fileio/CodedAudioFileReader.cpp Wed Jul 01 18:31:28 2015 +0100 @@ -452,6 +452,7 @@ sv_frame_t ix0 = start * m_channelCount; sv_frame_t ix1 = ix0 + (count * m_channelCount); + // This lock used to be a QReadWriteLock, but it appears that // its lock mechanism is significantly slower than QMutex so // it's not a good idea in cases like this where we don't
--- a/data/model/EditableDenseThreeDimensionalModel.cpp Wed Jul 01 13:27:03 2015 +0100 +++ b/data/model/EditableDenseThreeDimensionalModel.cpp Wed Jul 01 18:31:28 2015 +0100 @@ -342,7 +342,7 @@ // assert(values == expandAndRetrieve(index)); - long windowStart = index; + sv_frame_t windowStart = index; windowStart *= m_resolution; if (m_notifyOnAdd) {
--- a/data/model/EditableDenseThreeDimensionalModel.h Wed Jul 01 13:27:03 2015 +0100 +++ b/data/model/EditableDenseThreeDimensionalModel.h Wed Jul 01 18:31:28 2015 +0100 @@ -222,8 +222,8 @@ float m_maximum; bool m_haveExtents; bool m_notifyOnAdd; - long m_sinceLastNotifyMin; - long m_sinceLastNotifyMax; + sv_frame_t m_sinceLastNotifyMin; + sv_frame_t m_sinceLastNotifyMax; int m_completion; mutable QReadWriteLock m_lock;
--- a/data/model/ImageModel.h Wed Jul 01 13:27:03 2015 +0100 +++ b/data/model/ImageModel.h Wed Jul 01 18:31:28 2015 +0100 @@ -31,13 +31,13 @@ struct ImagePoint : public XmlExportable { public: - ImagePoint(long _frame) : frame(_frame) { } - ImagePoint(long _frame, QString _image, QString _label) : + ImagePoint(sv_frame_t _frame) : frame(_frame) { } + ImagePoint(sv_frame_t _frame, QString _image, QString _label) : frame(_frame), image(_image), label(_label) { } int getDimensions() const { return 1; } - long frame; + sv_frame_t frame; QString image; QString label;
--- a/data/model/SparseTimeValueModel.h Wed Jul 01 13:27:03 2015 +0100 +++ b/data/model/SparseTimeValueModel.h Wed Jul 01 18:31:28 2015 +0100 @@ -29,13 +29,13 @@ struct TimeValuePoint { public: - TimeValuePoint(long _frame) : frame(_frame), value(0.0f) { } - TimeValuePoint(long _frame, float _value, QString _label) : + TimeValuePoint(sv_frame_t _frame) : frame(_frame), value(0.0f) { } + TimeValuePoint(sv_frame_t _frame, float _value, QString _label) : frame(_frame), value(_value), label(_label) { } int getDimensions() const { return 2; } - long frame; + sv_frame_t frame; float value; QString label;