BufSamples

object BufSamples extends ProductReader[BufSamples]

Returns the current number of allocated samples in the Buffer at the provided index. A sample is not the same as a frame (compare with BufFrames ); a frame includes the samples in each channel of the buffer. Only for a mono buffer are samples the same as frames.

samples = frames * numChannels

===Examples===

// samples of local buffer
play {
 val buf = LocalBuf(1024, 2)
 BufSamples.ir(buf).poll(0) // 2 * 1024 = 2048
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[BufSamples]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ir(buf: GE): BufSamples
Value Params
buf

Buffer id.

def kr(buf: GE): BufSamples
Value Params
buf

Buffer id.

def read(in: RefMapIn, key: String, arity: Int): BufSamples