StreamBuffer

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.

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, if false 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
trait DynamicUser
trait Disposable[RT]
class Object
trait Matchable
class Any

Type members

Inherited types

protected type Body = PartialFunction[Message, Unit]
Inherited from
SendReplyResponder

Value members

Inherited methods

final def add(tx: RT): Unit
Inherited from
SendReplyResponder
def dispose(tx: RT): Unit

The user implements dispose by simply calling remove.

The user implements dispose by simply calling remove.

Inherited from
DynamicUser
final def remove(tx: RT): Unit
Inherited from
SendReplyResponder