diff data/fileio/CodedAudioFileReader.h @ 1306:b325e91505b5 mp3-gapless

Refactor in CodedAudioFileReader in preparation for trimming at end
author Chris Cannam
date Tue, 29 Nov 2016 12:06:49 +0000
parents 9f9f55a8af92
children c84629395040
line wrap: on
line diff
--- a/data/fileio/CodedAudioFileReader.h	Tue Nov 29 11:35:56 2016 +0000
+++ b/data/fileio/CodedAudioFileReader.h	Tue Nov 29 12:06:49 2016 +0000
@@ -79,8 +79,14 @@
     void endSerialised();
 
 private:
-    void pushBuffer(float *interleaved, sv_frame_t sz, bool final);
+    void pushCacheWriteBufferMaybe(bool final);
+    
+    sv_frame_t pushBuffer(float *interleaved, sv_frame_t sz, bool final);
+
+    // to be called only by pushBuffer
     void pushBufferResampling(float *interleaved, sv_frame_t sz, double ratio, bool final);
+
+    // to be called only by pushBuffer and pushBufferResampling
     void pushBufferNonResampling(float *interleaved, sv_frame_t sz);
 
 protected: