Mercurial > hg > svcore
changeset 1514:b7042aaecebe import-audio-data
Comments
author | Chris Cannam |
---|---|
date | Fri, 07 Sep 2018 16:13:48 +0100 |
parents | 75d92155fa20 |
children | ffec849858a7 |
files | data/model/ReadOnlyWaveFileModel.h |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/data/model/ReadOnlyWaveFileModel.h Fri Sep 07 16:13:21 2018 +0100 +++ b/data/model/ReadOnlyWaveFileModel.h Fri Sep 07 16:13:48 2018 +0100 @@ -36,8 +36,20 @@ Q_OBJECT public: + /** + * Construct a WaveFileModel from a source path and optional + * resampling target rate + */ ReadOnlyWaveFileModel(FileSource source, sv_samplerate_t targetRate = 0); + + /** + * Construct a WaveFileModel from a source path using an existing + * AudioFileReader. The model does not take ownership of the + * AudioFileReader, which remains managed by the caller and must + * outlive the model. + */ ReadOnlyWaveFileModel(FileSource source, AudioFileReader *reader); + ~ReadOnlyWaveFileModel(); bool isOK() const;