13 mSpeakerLayout(NULL) {
58 for (
unsigned i = 0; i <
mSources.size(); i++) {
67 logMsg(
"Panner::removeSource");
73 return (
void *)
new float;
void logMsg(const char *format,...)
These are the public logging messages.
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
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
void freeBuffers()
fcn to free them
The CSL system defaults class.
void setSize(unsigned numChannels, unsigned numFrames)
vector< void * > mCache
Vector of pointers to the prior I/O data.
static unsigned blockSize()
the default block size
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 speakerLayoutChanged()
virtual void update(void *arg)
Called when the speaker layout changes.
SpatialPanner(SpeakerLayout *layout=SpeakerLayout::defaultSpeakerLayout())
Constructor - a SpeakerLayout can be specified.
void detachObserver(Observer *)
void attachObserver(Observer *)
(possibly notify obersvers on my death)
void allocateBuffers()
fcn to malloc storage buffers
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...