Mercurial > hg > svapp
comparison audio/AudioCallbackRecordTarget.cpp @ 621:5e0018969003 import-audio-data
Update for slightly adjusted WritableWaveFileModel api
author | Chris Cannam |
---|---|
date | Wed, 12 Sep 2018 13:57:46 +0100 |
parents | bfa9604714c9 |
children | e2715204feaa dfec6c96007d |
comparison
equal
deleted
inserted
replaced
620:bfa9604714c9 | 621:5e0018969003 |
---|---|
246 QString filename = tr("recorded-%1.wav").arg(nowString); | 246 QString filename = tr("recorded-%1.wav").arg(nowString); |
247 QString label = tr("Recorded %1").arg(nowString); | 247 QString label = tr("Recorded %1").arg(nowString); |
248 | 248 |
249 m_audioFileName = recordedDir.filePath(filename); | 249 m_audioFileName = recordedDir.filePath(filename); |
250 | 250 |
251 m_model = new WritableWaveFileModel(m_recordSampleRate, | 251 m_model = new WritableWaveFileModel |
252 m_recordChannelCount, | 252 (m_audioFileName, |
253 m_audioFileName); | 253 m_recordSampleRate, |
254 m_recordChannelCount, | |
255 WritableWaveFileModel::Normalisation::None); | |
254 | 256 |
255 if (!m_model->isOK()) { | 257 if (!m_model->isOK()) { |
256 SVCERR << "ERROR: AudioCallbackRecordTarget::startRecording: Recording failed" | 258 SVCERR << "ERROR: AudioCallbackRecordTarget::startRecording: Recording failed" |
257 << endl; | 259 << endl; |
258 //!!! and throw? | 260 //!!! and throw? |