Mercurial > hg > svcore
comparison data/model/ReadOnlyWaveFileModel.h @ 1514:b7042aaecebe import-audio-data
Comments
author | Chris Cannam |
---|---|
date | Fri, 07 Sep 2018 16:13:48 +0100 |
parents | 09751743647e |
children | d93e34684da7 |
comparison
equal
deleted
inserted
replaced
1513:75d92155fa20 | 1514:b7042aaecebe |
---|---|
34 class ReadOnlyWaveFileModel : public WaveFileModel | 34 class ReadOnlyWaveFileModel : public WaveFileModel |
35 { | 35 { |
36 Q_OBJECT | 36 Q_OBJECT |
37 | 37 |
38 public: | 38 public: |
39 /** | |
40 * Construct a WaveFileModel from a source path and optional | |
41 * resampling target rate | |
42 */ | |
39 ReadOnlyWaveFileModel(FileSource source, sv_samplerate_t targetRate = 0); | 43 ReadOnlyWaveFileModel(FileSource source, sv_samplerate_t targetRate = 0); |
44 | |
45 /** | |
46 * Construct a WaveFileModel from a source path using an existing | |
47 * AudioFileReader. The model does not take ownership of the | |
48 * AudioFileReader, which remains managed by the caller and must | |
49 * outlive the model. | |
50 */ | |
40 ReadOnlyWaveFileModel(FileSource source, AudioFileReader *reader); | 51 ReadOnlyWaveFileModel(FileSource source, AudioFileReader *reader); |
52 | |
41 ~ReadOnlyWaveFileModel(); | 53 ~ReadOnlyWaveFileModel(); |
42 | 54 |
43 bool isOK() const; | 55 bool isOK() const; |
44 bool isReady(int *) const; | 56 bool isReady(int *) const; |
45 | 57 |