comparison data/model/AggregateWaveModel.cpp @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents cc27f35aa75c
children 0fd3661bcfff
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
83 AggregateWaveModel::getChannelCount() const 83 AggregateWaveModel::getChannelCount() const
84 { 84 {
85 return int(m_components.size()); 85 return int(m_components.size());
86 } 86 }
87 87
88 int 88 sv_samplerate_t
89 AggregateWaveModel::getSampleRate() const 89 AggregateWaveModel::getSampleRate() const
90 { 90 {
91 if (m_components.empty()) return 0; 91 if (m_components.empty()) return 0;
92 return m_components.begin()->model->getSampleRate(); 92 return m_components.begin()->model->getSampleRate();
93 } 93 }