Nothing fancy. This class just loads soundfiles into RAM and then uses PlayBuf to play them back. It uses the same interface as RedDiskInSampler (except for numFrames
which is is not implemented here).
Attach a soundfile to a key (number or symbol) and create buffers - one for each overlapping voice. This method is also has the alias preload
for backward compatibility.
key |
A number or a symbol. |
path |
A string to a soundfile. |
startFrame |
In samples. |
numFrames |
How much of the file to load in samples. Leave as |