Mercurial > hg > svapp
comparison audio/AudioCallbackRecordTarget.cpp @ 612:1822563a5da1
Fix compiler warnings
author | Chris Cannam |
---|---|
date | Wed, 08 Aug 2018 15:25:35 +0100 |
parents | 37b23e50832b |
children | bfa9604714c9 |
comparison
equal
deleted
inserted
replaced
611:37b23e50832b | 612:1822563a5da1 |
---|---|
144 { | 144 { |
145 #ifdef DEBUG_AUDIO_CALLBACK_RECORD_TARGET | 145 #ifdef DEBUG_AUDIO_CALLBACK_RECORD_TARGET |
146 cerr << "AudioCallbackRecordTarget::updateModel" << endl; | 146 cerr << "AudioCallbackRecordTarget::updateModel" << endl; |
147 #endif | 147 #endif |
148 | 148 |
149 bool secChanged = false; | |
150 sv_frame_t frameToEmit = 0; | 149 sv_frame_t frameToEmit = 0; |
151 | 150 |
152 int nframes = 0; | 151 int nframes = 0; |
153 for (int c = 0; c < m_recordChannelCount; ++c) { | 152 for (int c = 0; c < m_recordChannelCount; ++c) { |
154 if (c == 0 || m_buffers[c]->getReadSpace() < nframes) { | 153 if (c == 0 || m_buffers[c]->getReadSpace() < nframes) { |
181 for (int c = 0; c < m_recordChannelCount; ++c) { | 180 for (int c = 0; c < m_recordChannelCount; ++c) { |
182 delete[] samples[c]; | 181 delete[] samples[c]; |
183 } | 182 } |
184 delete[] samples; | 183 delete[] samples; |
185 | 184 |
186 sv_frame_t priorFrameCount = m_frameCount; | |
187 m_frameCount += nframes; | 185 m_frameCount += nframes; |
188 | 186 |
189 m_model->updateModel(); | 187 m_model->updateModel(); |
190 frameToEmit = m_frameCount; | 188 frameToEmit = m_frameCount; |
191 emit recordDurationChanged(frameToEmit, m_recordSampleRate); | 189 emit recordDurationChanged(frameToEmit, m_recordSampleRate); |