7#ifndef STK_MEMORYLOOP_H
8#define STK_MEMORYLOOP_H
36 MemoryLoop(std::string fileName,
const unsigned char *data,
size_t size,
unsigned long chunkSize=1024);
39 MemoryLoop(std::string fileName,
unsigned long chunkSize=1024);
48 virtual void openFile( std::string fileName,
bool raw =
true,
bool doNormalize =
true,
bool doInt2FloatScaling =
true )
override;
54 virtual void openFile(
const char* fileName,
bool raw =
true,
bool doNormalize =
true,
bool doInt2FloatScaling =
true ) ;
84 virtual void fileRead(
StkFrames& buffer,
unsigned long startFrame,
bool doNormalize )
override;
85 virtual void open(
bool doNormalize=
true,
bool doInt2FloatScaling=
true);
89 StkFloat phaseOffset_;
FileLoop(unsigned long chunkThreshold=1000000, unsigned long chunkSize=1024)
Default constructor.
STK in memory File An instance is representing an individual memory array which can be registered wit...
Definition MemoryFS.h:52
MemoryLoop(std::string fileName, unsigned long chunkSize=1024)
Class constructor that opens a specified file. The file must have been registered.
void closeFile(void) override
Close the actual file.
MemoryLoop(std::string fileName, const unsigned char *data, size_t size, unsigned long chunkSize=1024)
Class constructor that opens a specified file.
~MemoryLoop(void)
Class destructor.
bool isOpen(void) override
Query whether a file is open.
virtual void openFile(std::string fileName, bool raw=true, bool doNormalize=true, bool doInt2FloatScaling=true) override
Open the specified file and load its data.
MemoryLoop(unsigned long chunkSize=256)
Default constructor.
virtual void openFile(const char *fileName, bool raw=true, bool doNormalize=true, bool doInt2FloatScaling=true)
Open the specified file and load its data.
void addPhaseOffset(StkFloat angle) override
Add a phase offset to the current read pointer.
virtual StkFloat getFileRate(void) const override
Return the input file sample rate in Hz (not the data read rate).
An STK class to handle vectorized audio data.
Definition Stk.h:287
The STK namespace.
Definition ADSR.h:8