mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Fix for FileWvIn and FileLoop classes so that files are closed unless chunking.
This commit is contained in:
@@ -95,7 +95,7 @@ class FileLoop : protected FileWvIn
|
||||
corresponds to file cycles per second. The frequency can be
|
||||
negative, in which case the loop is read in reverse order.
|
||||
*/
|
||||
void setFrequency( StkFloat frequency ) { this->setRate( file_.fileSize() * frequency / Stk::sampleRate() ); };
|
||||
void setFrequency( StkFloat frequency ) { this->setRate( fileSize_ * frequency / Stk::sampleRate() ); };
|
||||
|
||||
//! Increment the read pointer by \e time samples, modulo file size.
|
||||
void addTime( StkFloat time );
|
||||
|
||||
Reference in New Issue
Block a user