BufferImpl

final case
class BufferImpl(server: Server, peer: Buffer)(numFrames: Int, numChannels: Int, closeOnDisposal: Boolean) extends ResourceImpl with Modifiable
trait Serializable
trait Product
trait Equals
trait Buffer
trait Resource
trait Disposable[RT]
class Object
trait Matchable
class Any

Value members

Concrete methods

def alloc()(implicit tx: RT): Unit
def allocRead(path: String, startFrame: Long)(implicit tx: RT): Unit

Allocates and reads the buffer content once (closes the file).

Allocates and reads the buffer content once (closes the file).

def cheby(amps: Seq[Float], normalize: Boolean, wavetable: Boolean, clear: Boolean)(implicit tx: RT): Unit
def cue(path: String, fileStartFrame: Long, numFrames: Int)(implicit tx: RT): Unit

Cues the input sound file for streaming via DiskIn (leaves the file open).

Cues the input sound file for streaming via DiskIn (leaves the file open).

def dispose()(implicit tx: RT): Unit
def fill(index: Int, num: Int, value: Float)(implicit tx: RT): Unit

Clears the buffer contents.

Clears the buffer contents.

def gen(cmd: Command)(implicit tx: RT): Unit
def id: Int
def mkOnline()(implicit tx: RT): BufferImpl
def read(path: String, fileStartFrame: Long, numFrames: Int, bufStartFrame: Int)(implicit tx: RT): Unit

Reads the buffer contents from a file (closes the file).

Reads the buffer contents from a file (closes the file).

def readChannel(path: String, channels: Seq[Int], fileStartFrame: Long, numFrames: Int, bufStartFrame: Int)(implicit tx: RT): Unit
def record(path: String, fileType: AudioFileType, sampleFormat: SampleFormat)(implicit tx: RT): Unit

Opens a file to write to in streaming mode (leaving it open), as usable for DiskOut.

Opens a file to write to in streaming mode (leaving it open), as usable for DiskOut.

def setn(values: IndexedSeq[Float])(implicit tx: RT): Unit
def setn(pairs: (Int, IndexedSeq[Float])*)(implicit tx: RT): Unit
def sine1(partials: Seq[Float], normalize: Boolean, wavetable: Boolean, clear: Boolean)(implicit tx: RT): Unit
def sine2(partials: Seq[(Float, Float)], normalize: Boolean, wavetable: Boolean, clear: Boolean)(implicit tx: RT): Unit
def sine3(partials: Seq[(Float, Float, Float)], normalize: Boolean, wavetable: Boolean, clear: Boolean)(implicit tx: RT): Unit
def write(path: String, fileType: AudioFileType, sampleFormat: SampleFormat, numFrames: Int, startFrame: Int, leaveOpen: Boolean)(implicit tx: RT): Unit

Writes the buffer contents once (closes the target file).

Writes the buffer contents once (closes the target file).

def zero()(implicit tx: RT): Unit

Clears the buffer contents.

Clears the buffer contents.

Inherited methods

final
def isOnline(implicit tx: RT): Boolean
Inherited from
ResourceImpl
protected
def online0: Boolean
Inherited from
ResourceImpl
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final protected
def require(p: Boolean, message: => String): Unit
Inherited from
ResourceImpl
final protected
def requireOffline()(implicit tx: RT): Unit
Inherited from
ResourceImpl
final protected
def requireOnline()(implicit tx: RT): Unit
Inherited from
ResourceImpl
final protected
def setOnline(value: Boolean)(implicit tx: RT): Unit
Inherited from
ResourceImpl
final
def timeStamp(implicit tx: RT): TimeStamp
Inherited from
ResourceImpl
final
def timeStamp_=(value: TimeStamp)(implicit tx: RT): Unit
Inherited from
ResourceImpl

Concrete fields

val numChannels: Int
val numFrames: Int