Mercurial > hg > svcore
diff data/fileio/AudioFileReader.h @ 936:0c1d6de8f44b
Merge from branch warnfix_no_size_t
author | Chris Cannam |
---|---|
date | Wed, 18 Jun 2014 13:51:16 +0100 |
parents | 59e7fe1b1003 |
children | c9d456b1fcde |
line wrap: on
line diff
--- a/data/fileio/AudioFileReader.h Tue Jun 03 11:05:49 2014 +0100 +++ b/data/fileio/AudioFileReader.h Wed Jun 18 13:51:16 2014 +0100 @@ -36,11 +36,11 @@ virtual QString getError() const { return ""; } - size_t getFrameCount() const { return m_frameCount; } - size_t getChannelCount() const { return m_channelCount; } - size_t getSampleRate() const { return m_sampleRate; } + int getFrameCount() const { return m_frameCount; } + int getChannelCount() const { return m_channelCount; } + int getSampleRate() const { return m_sampleRate; } - virtual size_t getNativeRate() const { return m_sampleRate; } // if resampled + virtual int getNativeRate() const { return m_sampleRate; } // if resampled /** * Return the location of the audio data in the reader (as passed @@ -81,7 +81,7 @@ * thread-safe -- that is, safe to call from multiple threads with * different arguments on the same object at the same time. */ - virtual void getInterleavedFrames(size_t start, size_t count, + virtual void getInterleavedFrames(int start, int count, SampleBlock &frames) const = 0; /** @@ -91,7 +91,7 @@ * will contain getChannelCount() sample blocks of count samples * each (or fewer if end of file is reached). */ - virtual void getDeInterleavedFrames(size_t start, size_t count, + virtual void getDeInterleavedFrames(int start, int count, std::vector<SampleBlock> &frames) const; // only subclasses that do not know exactly how long the audio @@ -104,9 +104,9 @@ void frameCountChanged(); protected: - size_t m_frameCount; - size_t m_channelCount; - size_t m_sampleRate; + int m_frameCount; + int m_channelCount; + int m_sampleRate; }; #endif