t_buffer Struct Reference

Data structure for the buffer~ object. More...

#include <buffer.h>

+ Collaboration diagram for t_buffer:

Data Fields

t_object b_obj
 doesn't have any signals so it doesn't need to be pxobject
long b_valid
 flag is off during read replacement or editing operation
float * b_samples
 stored with interleaved channels if multi-channel
long b_frames
 number of sample frames (each one is sizeof(float) * b_nchans bytes)
long b_nchans
 number of channels
long b_size
 size of buffer in floats
float b_sr
 sampling rate of the buffer
float b_1oversr
 1 / sr
float b_msr
 sr * .001
float * b_memory
 pointer to where memory starts (initial padding for interp)
 name of the buffer
long b_susloopstart
 looping info (from AIFF file) in samples
long b_susloopend
 looping info (from AIFF file) in samples
long b_relloopstart
 looping info (from AIFF file) in samples
long b_relloopend
 looping info (from AIFF file) in samples
long b_format
 'AIFF' or 'Sd2f'
 last file read (not written) for readagain message
long b_oldnchans
 used for resizing window in case of # of channels change
long b_outputbytes
 number of bytes used for output sample (1-4)
long b_modtime
 last modified time ("dirty" method)
struct _bufferb_peer
 objects that share this symbol (used as a link in the peers)
t_bool b_owner
 b_memory/b_samples "owned" by this object
long b_outputfmt
 sample type (A_LONG, A_FLOAT, etc.)
t_int32_atomic b_inuse
 objects that use buffer should ATOMIC_INCREMENT / ATOMIC_DECREMENT this in their perform
void * b_dspchain
 dspchain used for this instance
long b_padding
 amount of padding (number of samples) in b_memory before b_samples starts
long b_paddingchanged
 flag indicating that b_padding has changed and needs to be allocated
 internal instance for reading/writing FLAC format
t_systhread_mutex b_mutex
 mutex to use when locking and performing operations anywhere except perform method
long b_wasvalid
 internal flag used by replacement or editing operation

Detailed Description

Data structure for the buffer~ object.

Deprectated. Use t_buffer_ref and t_buffer_obj instead.