An object that refers to sample audio data, and is able to resample it and keep track of its current play position, respecting said sample data's loop points (with the aid of Status Commands).
It should remember the last time it resampled, or rather, the sample rate of the last resample, so it can just use that instead of resampling every time audio is requested.
[x] SampleData code
[ ] Sampler code
[ ] Integrate with engine.Engine
For more info on integrating with engine, see another example: #2.
An object that refers to sample audio data, and is able to resample it and keep track of its current play position, respecting said sample data's loop points (with the aid of Status Commands).
It should remember the last time it resampled, or rather, the sample rate of the last resample, so it can just use that instead of resampling every time audio is requested.
SampleData
codeSampler
codeengine.Engine
For more info on integrating with engine, see another example: #2.