Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h Tue Mar 03 17:09:19 2015 +0000 +++ b/data/fileio/AudioFileReader.h Wed Mar 04 12:01:04 2015 +0000 @@ -39,9 +39,9 @@ sv_frame_t getFrameCount() const { return m_frameCount; } int getChannelCount() const { return m_channelCount; } - int getSampleRate() const { return m_sampleRate; } + sv_samplerate_t getSampleRate() const { return m_sampleRate; } - virtual int getNativeRate() const { return m_sampleRate; } // if resampled + virtual sv_samplerate_t getNativeRate() const { return m_sampleRate; } // if resampled /** * Return the location of the audio data in the reader (as passed @@ -119,7 +119,7 @@ protected: sv_frame_t m_frameCount; int m_channelCount; - int m_sampleRate; + sv_samplerate_t m_sampleRate; }; #endif