BufferRead

final case class BufferRead(id: Int, path: String, fileStartFrame: Int, numFrames: Int, bufStartFrame: Int, leaveOpen: Boolean, completion: Option[Packet]) extends Message with HasCompletion

The /b_read message tells the server to read a portion of an audio-file into an existing buffer.

The /b_read message tells the server to read a portion of an audio-file into an existing buffer.

Value Params
bufStartFrame

the frame offset in the buffer to begin writing to.

fileStartFrame

the offset in frames into the audio-file to begin reading from

id

the identifier of the buffer to read into.

leaveOpen

if true, leaves the file open for streaming with the DiskIn UGen.

numFrames

the number of frames to read which will be the size of the allocated buffer. The special value of -1 denotes that as many frames are read as are available in the file or fit into the buffer.

path

the path of the audio-file to read.

See also
trait Serializable
trait Product
trait Equals
trait AsyncSend
trait Send
class Message
trait Packet
class Object
trait Matchable
class Any

Value members

Concrete methods

def updateCompletion(completion: Option[Packet]): BufferRead

Inherited methods

def encode(c: PacketCodec, b: ByteBuffer): Unit
Inherited from
Message
def encodedSize(c: PacketCodec): Int
Inherited from
Message
override def equals(other: Any): Boolean
Definition Classes
Message -> Any
Inherited from
Message
override def hashCode(): Int
Definition Classes
Message -> Any
Inherited from
Message
final def isSynchronous: Boolean
Inherited from
AsyncSend
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
override def toString: String
Definition Classes
Message -> Any
Inherited from
Message

Inherited fields

val args: Any*
Inherited from
Message
val name: String
Inherited from
Message