Mercurial > hg > svcore
comparison data/model/Model.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 | 57633d605547 |
comparison
equal
deleted
inserted
replaced
1039:b14064bd1f97 | 1040:a1cd5abcb38b |
---|---|
59 virtual sv_frame_t getEndFrame() const = 0; | 59 virtual sv_frame_t getEndFrame() const = 0; |
60 | 60 |
61 /** | 61 /** |
62 * Return the frame rate in frames per second. | 62 * Return the frame rate in frames per second. |
63 */ | 63 */ |
64 virtual int getSampleRate() const = 0; | 64 virtual sv_samplerate_t getSampleRate() const = 0; |
65 | 65 |
66 /** | 66 /** |
67 * Return the frame rate of the underlying material, if the model | 67 * Return the frame rate of the underlying material, if the model |
68 * itself has already been resampled. | 68 * itself has already been resampled. |
69 */ | 69 */ |
70 virtual int getNativeRate() const { return getSampleRate(); } | 70 virtual sv_samplerate_t getNativeRate() const { return getSampleRate(); } |
71 | 71 |
72 /** | 72 /** |
73 * Return the "work title" of the model, if known. | 73 * Return the "work title" of the model, if known. |
74 */ | 74 */ |
75 virtual QString getTitle() const; | 75 virtual QString getTitle() const; |