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
}
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.
Examples
BufDur
BufChannels
BufFrames