comparison data/model/WritableWaveFileModel.h @ 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
35 * Call addSamples to append a block of samples to the end of the 35 * Call addSamples to append a block of samples to the end of the
36 * file. Caller should also call setWriteProportion() to update 36 * file. Caller should also call setWriteProportion() to update
37 * the progress of this file, if it has a known end point, and 37 * the progress of this file, if it has a known end point, and
38 * should call writeComplete() when the file has been written. 38 * should call writeComplete() when the file has been written.
39 */ 39 */
40 virtual bool addSamples(float **samples, sv_frame_t count); 40 virtual bool addSamples(const float *const *samples, sv_frame_t count);
41 41
42 /** 42 /**
43 * Set the proportion of the file which has been written so far, 43 * Set the proportion of the file which has been written so far,
44 * as a percentage. This may be used to indicate progress. 44 * as a percentage. This may be used to indicate progress.
45 * 45 *