comparison data/fileio/WavFileWriter.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 4d9816ba0ebe
children 54af1e21705c
comparison
equal deleted inserted replaced
1323:4dbb7a7c9c28 1325:3aea4f7617bb
164 164
165 return isOK(); 165 return isOK();
166 } 166 }
167 167
168 bool 168 bool
169 WavFileWriter::writeSamples(float **samples, sv_frame_t count) 169 WavFileWriter::writeSamples(const float *const *samples, sv_frame_t count)
170 { 170 {
171 if (!m_file) { 171 if (!m_file) {
172 m_error = QString("Failed to write model to audio file '%1': File not open") 172 m_error = QString("Failed to write model to audio file '%1': File not open")
173 .arg(getWriteFilename()); 173 .arg(getWriteFilename());
174 return false; 174 return false;