comparison data/model/FFTModel.cpp @ 1752:6d09d68165a4 by-id

Further review of ById: make IDs only available when adding a model to the ById store, not by querying the item directly. This means any id encountered in the wild must have been added to the store at some point (even if later released), which simplifies reasoning about lifecycles
author Chris Cannam
date Fri, 05 Jul 2019 15:28:07 +0100
parents b92bdcd4954b
children fadd9f8aaa27
comparison
equal deleted inserted replaced
1751:77543124651b 1752:6d09d68165a4
61 61
62 m_fft.initFloat(); 62 m_fft.initFloat();
63 63
64 auto model = ModelById::getAs<DenseTimeValueModel>(m_model); 64 auto model = ModelById::getAs<DenseTimeValueModel>(m_model);
65 if (model) { 65 if (model) {
66 connect(model.get(), SIGNAL(modelChanged()), 66 connect(model.get(), SIGNAL(modelChanged(ModelId)),
67 this, SIGNAL(modelChanged())); 67 this, SIGNAL(modelChanged(ModelId)));
68 connect(model.get(), SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t)), 68 connect(model.get(), SIGNAL(modelChangedWithin(ModelId, sv_frame_t, sv_frame_t)),
69 this, SIGNAL(modelChangedWithin(sv_frame_t, sv_frame_t))); 69 this, SIGNAL(modelChangedWithin(ModelId, sv_frame_t, sv_frame_t)));
70 } 70 }
71 } 71 }
72 72
73 FFTModel::~FFTModel() 73 FFTModel::~FFTModel()
74 { 74 {