comparison data/fileio/AudioFileReader.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 843f67be0ed9
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
37 37
38 virtual QString getError() const { return ""; } 38 virtual QString getError() const { return ""; }
39 39
40 sv_frame_t getFrameCount() const { return m_frameCount; } 40 sv_frame_t getFrameCount() const { return m_frameCount; }
41 int getChannelCount() const { return m_channelCount; } 41 int getChannelCount() const { return m_channelCount; }
42 int getSampleRate() const { return m_sampleRate; } 42 sv_samplerate_t getSampleRate() const { return m_sampleRate; }
43 43
44 virtual int getNativeRate() const { return m_sampleRate; } // if resampled 44 virtual sv_samplerate_t getNativeRate() const { return m_sampleRate; } // if resampled
45 45
46 /** 46 /**
47 * Return the location of the audio data in the reader (as passed 47 * Return the location of the audio data in the reader (as passed
48 * in to the FileSource constructor, for example). 48 * in to the FileSource constructor, for example).
49 */ 49 */
117 void frameCountChanged(); 117 void frameCountChanged();
118 118
119 protected: 119 protected:
120 sv_frame_t m_frameCount; 120 sv_frame_t m_frameCount;
121 int m_channelCount; 121 int m_channelCount;
122 int m_sampleRate; 122 sv_samplerate_t m_sampleRate;
123 }; 123 };
124 124
125 #endif 125 #endif