comparison framework/MainWindowBase.cpp @ 685:7540733f5480 by-id

Overhaul SV file reader etc
author Chris Cannam
date Thu, 04 Jul 2019 14:31:22 +0100
parents 5e9b1956b609
children 610fa108fbcc
comparison
equal deleted inserted replaced
684:5e9b1956b609 685:7540733f5480
2663 m_audioIO->resume(); 2663 m_audioIO->resume();
2664 } 2664 }
2665 } 2665 }
2666 2666
2667 ModelId 2667 ModelId
2668 MainWindowBase::getMainModelId() 2668 MainWindowBase::getMainModelId() const
2669 { 2669 {
2670 if (!m_document) return {}; 2670 if (!m_document) return {};
2671 return m_document->getMainModel(); 2671 return m_document->getMainModel();
2672 } 2672 }
2673 2673
2674 std::shared_ptr<WaveFileModel> 2674 std::shared_ptr<WaveFileModel>
2675 MainWindowBase::getMainModel() 2675 MainWindowBase::getMainModel() const
2676 { 2676 {
2677 return ModelById::getAs<WaveFileModel>(getMainModelId()); 2677 return ModelById::getAs<WaveFileModel>(getMainModelId());
2678 } 2678 }
2679 2679
2680 void 2680 void