Mercurial > hg > svcore
diff data/model/FFTModel.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 | 1a73618b0b67 |
line wrap: on
line diff
--- a/data/model/FFTModel.h Tue Mar 03 17:09:19 2015 +0000 +++ b/data/model/FFTModel.h Wed Mar 04 12:01:04 2015 +0000 @@ -126,7 +126,7 @@ virtual sv_frame_t getEndFrame() const { return sv_frame_t(getWidth()) * getResolution() + getResolution(); } - virtual int getSampleRate() const; + virtual sv_samplerate_t getSampleRate() const; virtual int getResolution() const { return m_server->getWindowIncrement() << m_xshift; } @@ -202,8 +202,8 @@ int, WindowType, int, int, int, bool, StorageAdviser::Criteria, int); - int getPeakPickWindowSize(PeakPickType type, int sampleRate, - int bin, float &percentile) const; + int getPeakPickWindowSize(PeakPickType type, sv_samplerate_t sampleRate, + int bin, float &percentile) const; int getYRatio() { int ys = m_yshift;