Mercurial > hg > svcore
comparison data/model/WaveFileModel.h @ 1040:a1cd5abcb38b cxx11
Introduce and use a samplerate type
author | Chris Cannam |
---|---|
date | Wed, 04 Mar 2015 12:01:04 +0000 |
parents | cc27f35aa75c |
children | 0fd3661bcfff |
comparison
equal
deleted
inserted
replaced
1039:b14064bd1f97 | 1040:a1cd5abcb38b |
---|---|
32 class WaveFileModel : public RangeSummarisableTimeValueModel | 32 class WaveFileModel : public RangeSummarisableTimeValueModel |
33 { | 33 { |
34 Q_OBJECT | 34 Q_OBJECT |
35 | 35 |
36 public: | 36 public: |
37 WaveFileModel(FileSource source, int targetRate = 0); | 37 WaveFileModel(FileSource source, sv_samplerate_t targetRate = 0); |
38 WaveFileModel(FileSource source, AudioFileReader *reader); | 38 WaveFileModel(FileSource source, AudioFileReader *reader); |
39 ~WaveFileModel(); | 39 ~WaveFileModel(); |
40 | 40 |
41 bool isOK() const; | 41 bool isOK() const; |
42 bool isReady(int *) const; | 42 bool isReady(int *) const; |
43 | 43 |
44 const ZoomConstraint *getZoomConstraint() const { return &m_zoomConstraint; } | 44 const ZoomConstraint *getZoomConstraint() const { return &m_zoomConstraint; } |
45 | 45 |
46 sv_frame_t getFrameCount() const; | 46 sv_frame_t getFrameCount() const; |
47 int getChannelCount() const; | 47 int getChannelCount() const; |
48 int getSampleRate() const; | 48 sv_samplerate_t getSampleRate() const; |
49 int getNativeRate() const; | 49 sv_samplerate_t getNativeRate() const; |
50 | 50 |
51 QString getTitle() const; | 51 QString getTitle() const; |
52 QString getMaker() const; | 52 QString getMaker() const; |
53 QString getLocation() const; | 53 QString getLocation() const; |
54 | 54 |