Mercurial > hg > svcore
diff data/fileio/AudioFileReaderFactory.h @ 1040:a1cd5abcb38b cxx11
Introduce and use a samplerate type
author | Chris Cannam |
---|---|
date | Wed, 04 Mar 2015 12:01:04 +0000 |
parents | d03b3d956358 |
children | 329ddaf7415d |
line wrap: on
line diff
--- a/data/fileio/AudioFileReaderFactory.h Tue Mar 03 17:09:19 2015 +0000 +++ b/data/fileio/AudioFileReaderFactory.h Wed Mar 04 12:01:04 2015 +0000 @@ -19,6 +19,7 @@ #include <QString> #include "FileSource.h" +#include "base/BaseTypes.h" class AudioFileReader; class ProgressReporter; @@ -53,7 +54,7 @@ * Caller owns the returned object and must delete it after use. */ static AudioFileReader *createReader(FileSource source, - int targetRate = 0, + sv_samplerate_t targetRate = 0, bool normalised = false, ProgressReporter *reporter = 0); @@ -82,13 +83,13 @@ * Caller owns the returned object and must delete it after use. */ static AudioFileReader *createThreadingReader(FileSource source, - int targetRate = 0, + sv_samplerate_t targetRate = 0, bool normalised = false, ProgressReporter *reporter = 0); protected: static AudioFileReader *create(FileSource source, - int targetRate, + sv_samplerate_t targetRate, bool normalised, bool threading, ProgressReporter *reporter);