abstract
class StreamBuffer(key: String, idx: Int, val synth: Synth, buf: Modifiable, fileFrames: Long, interpolation: Int, startFrame: Long, loop: Boolean, resetFrame: Long) extends SendReplyResponder
An object that manages streaming an audio buffer.
- Value Params
- buf
the buffer to send data to
- fileFrames
the total number of frames in the file
- idx
the index in
SendReply
- interpolation
the type of interpolation (1 = none, 2 = linear, 4 = cubic)
- key
the key is used for the
SendReply
messages- loop
if
true
keeps looping the buffer, iffalse
pads reset with zeroes, then stops- resetFrame
when looping, the reset frame position into the file after each loop begins. this should be less than or equal to
startFrame
- startFrame
the start frame into the file to begin with
- synth
the synth to expect the
SendReply
messages to come from
- Companion
- object