From 6ce3ac9e10fde4adbb863f4fa04a6d0e185b242c Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Fri, 27 Apr 2018 13:21:14 +0200 Subject: [PATCH] Fix in FileLoop::getSize() to return file size in samples, rather than the chunk size if chunking.(GPS) --- include/FileLoop.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/FileLoop.h b/include/FileLoop.h index 5b7c285..10914e7 100644 --- a/include/FileLoop.h +++ b/include/FileLoop.h @@ -74,7 +74,8 @@ class FileLoop : protected FileWvIn void normalize( StkFloat peak ) { FileWvIn::normalize( peak ); }; //! Return the file size in sample frames. - unsigned long getSize( void ) const { return data_.frames(); }; + //unsigned long getSize( void ) const { return data_.frames(); }; + unsigned long getSize( void ) const { return fileSize_; }; //! Return the input file sample rate in Hz (not the data read rate). /*!