diff 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
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;