comparison data/fileio/WavFileWriter.h @ 1520:954d0cf29ca7 import-audio-data

Switch the normalisation option in WritableWaveFileModel from normalising on read to normalising on write, so that the saved file is already normalised and therefore can be read again without having to remember to normalise it
author Chris Cannam
date Wed, 12 Sep 2018 13:56:56 +0100
parents 1bc6f70cb4c7
children
comparison
equal deleted inserted replaced
1519:fbe8afdfa8a6 1520:954d0cf29ca7
62 QString getPath() const { return m_path; } 62 QString getPath() const { return m_path; }
63 63
64 bool writeModel(DenseTimeValueModel *source, 64 bool writeModel(DenseTimeValueModel *source,
65 MultiSelection *selection = 0); 65 MultiSelection *selection = 0);
66 66
67 bool writeSamples(const float *const *samples, sv_frame_t count); // count per channel 67 /// Write samples from raw arrays; count is per-channel
68 bool writeSamples(const float *const *samples, sv_frame_t count);
69
70 /// As writeSamples, but compatible with WavFileReader api. More expensive.
71 bool putInterleavedFrames(const floatvec_t &frames);
68 72
69 bool close(); 73 bool close();
70 74
71 protected: 75 protected:
72 QString m_path; 76 QString m_path;