BufferWrite

Asynchronously transfers a buffer's content to a file 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 BufferWrite.apply (which is similar to BufferPrepare()).

class Object
trait Matchable
class Any

Type members

Classlikes

case
class Config(f: Value, spec: AudioFileSpec, offset: Int, buf: Buffer, key: String)

The configuration of the buffer transfer.

The configuration of the buffer transfer.

Value Params
buf

the buffer to write from.

f

the audio file to write to

key

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

offset

the offset into the buffer to start from

spec

the file's specification (number of channels and frames)

final
class Starter[T <: Txn[T]](f: Value, key: String, nr: AuralNode[T])(implicit context: AuralContext[T]) extends SendReplyResponder

Value members

Concrete methods

def apply[T <: Txn[LazyRef(...)]](config: Config)(implicit tx: T): Future[Any] & Resource

Creates and launches the process.

Creates and launches the process.

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