7 #ifndef SPATIAL_PANNER_H
8 #define SPATIAL_PANNER_H
39 virtual void update(
void *arg);
43 throw LogicError(
"Asking for mono nextBuffer of a SpatialPanner");
56 virtual void *
cache();
virtual void nextBuffer(Buffer &outputBuffer)=0
get a buffer of Frames – this is the core CSL "pull" function; the given buffer can be written into...
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
CSL Observer/Dependent/Monitor class – instances receive update() messages from "models" and handle ...
UGenVector mSources
SpatialSource... refers to its input UGen, but with the knowledge of its position within a space...
Buffer mTempBuffer
Buffer used to temporarily hold input source data.
virtual void * cache()
create the cache
vector< void * > mCache
Vector of pointers to the prior I/O data.
Base class for all panners. Handles source management and holds a speaker layout. ...
Temp Spatial Sound Source.
SpeakerLayout * mSpeakerLayout
If null, it will use the default layout by calling SpeakerLayout::defaultSpeakerLayout();.
virtual void removeSource(SpatialSource &s)
Remove a Sound Source.
virtual void addSource(SpatialSource &s)
number of active inputs.
virtual void nextBuffer(Buffer &outputBuffer, unsigned outBufNum)
really compute the next buffer given an offset base channel; this is called by nextBuffer, possibly multiple times
std::vector< UnitGenerator * > UGenVector
virtual void speakerLayoutChanged()
virtual void update(void *arg)
Called when the speaker layout changes.
SpatialPanner(SpeakerLayout *layout=SpeakerLayout::defaultSpeakerLayout())
Constructor - a SpeakerLayout can be specified.
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
static SpeakerLayout * defaultSpeakerLayout()
Returns a pointer to the default layout. If no default exists, it creates one.
void setSpeakerLayout(SpeakerLayout *aLayout)
Set the speaker layout to be used by this panner. The panner will request the default layout if not s...
Base class of CSL exceptions (written upper-case). Has a string message.