diff data/fileio/CodedAudioFileReader.h @ 920:f3cda3280398 tonioni

Add normalised option to CodedAudioFileReader
author Chris Cannam
date Fri, 13 Jun 2014 16:03:48 +0100
parents f0558e69a074
children d03b3d956358
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.h	Fri Jun 13 12:56:31 2014 +0100
+++ b/data/fileio/CodedAudioFileReader.h	Fri Jun 13 16:03:48 2014 +0100
@@ -50,7 +50,9 @@
     void progress(int);
 
 protected:
-    CodedAudioFileReader(CacheMode cacheMode, size_t targetRate);
+    CodedAudioFileReader(CacheMode cacheMode,
+                         size_t targetRate,
+                         bool normalised);
 
     void initialiseDecodeCache(); // samplerate, channels must have been set
 
@@ -91,6 +93,10 @@
     Resampler *m_resampler;
     float *m_resampleBuffer;
     size_t m_fileFrameCount;
+
+    bool m_normalised;
+    float m_max;
+    float m_gain;
 };
 
 #endif