comparison data/model/WritableWaveFileModel.cpp @ 1325:3aea4f7617bb 3.0-integration

Handle increases in the overall channel count by closing and reopening the audio device.
author Chris Cannam
date Tue, 13 Dec 2016 12:03:48 +0000
parents e994747fb9dd
children 54af1e21705c
comparison
equal deleted inserted replaced
1323:4dbb7a7c9c28 1325:3aea4f7617bb
109 m_startFrame = startFrame; 109 m_startFrame = startFrame;
110 if (m_model) m_model->setStartFrame(startFrame); 110 if (m_model) m_model->setStartFrame(startFrame);
111 } 111 }
112 112
113 bool 113 bool
114 WritableWaveFileModel::addSamples(float **samples, sv_frame_t count) 114 WritableWaveFileModel::addSamples(const float *const *samples, sv_frame_t count)
115 { 115 {
116 if (!m_writer) return false; 116 if (!m_writer) return false;
117 117
118 #ifdef DEBUG_WRITABLE_WAVE_FILE_MODEL 118 #ifdef DEBUG_WRITABLE_WAVE_FILE_MODEL
119 // SVDEBUG << "WritableWaveFileModel::addSamples(" << count << ")" << endl; 119 // SVDEBUG << "WritableWaveFileModel::addSamples(" << count << ")" << endl;