BufferGet

object BufferGet

Asynchronously transfers a buffer's content to an IExpr chunks by chunk. This works in two steps, as it is triggered from within the node. First, the Starter is installed on the aural node. When it detects the trigger, it calls BufferGet.apply (which is similar to BufferPrepare()).

class Object
trait Matchable
class Any

Type members

Classlikes

sealed
trait Sink[T <: Txn[T]]
final
class Starter[T <: Txn[T]](sink: Sink[T], key: String, nr: AuralNode[T])(implicit context: AuralContext[T]) extends SendReplyResponder
final
class WithEx[T <: Txn[T], A](vr: Expanded[T, A]) extends Sink[T]
final
class WithVec[T <: Txn[T], A, Repr <: ([~ <: Txn[~]] =>> Expr[~, IndexedSeq[A]])](vrH: Source[T, Var[T, Repr[T]]])(lift: IndexedSeq[Double] => IndexedSeq[A])(implicit context: AuralContext[T], tpe: Type[IndexedSeq[A], Repr]) extends Sink[T]

Value members

Concrete methods

def apply[T <: Txn[LazyRef(...)]](sink: Sink[T], numFrames: Int, offset: Int, buf: Buffer, key: String)(implicit tx: T, context: AuralContext[T]): Future[Any] & Resource

Creates and launches the process.

Creates and launches the process.

Value Params
buf

the buffer to write from.

key

the key of the graph.Buffer element, used for setting the synth control eventually

numFrames

the number of frames in the buffer to obtain

offset

the offset into the buffer to start from

def doneName(key: String): String
def makeUGen(g: GetBuf): GE
def replyName(key: String): String