#include <AmbisonicUtilities.h>

Public Member Functions | |
| AmbisonicMixer (unsigned order=1) | |
| AmbisonicMixer (unsigned hOrder, unsigned vOrder) | |
| ~AmbisonicMixer () | |
| Destructor. | |
| void | initialize () |
| Initializing method called by constructors. | |
| void | addInput (AmbisonicUnitGenerator &input) |
| methods for adding/removing inputs to the mixer. | |
| void | addInput (UnitGenerator &input) |
| unsigned | numInputs () |
| virtual void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
| Number of active inputs. | |
Protected Attributes | |
| UGenVector | mInputs |
| vector of pointers to the loudspeakers | |
| Buffer * | mInBuffer |
| buffer for the input framestream | |
| float | mInvNumInputs |
| the inverse of the number of inputs (used for normalization) | |
| AmbisonicMixer::AmbisonicMixer | ( | unsigned | order = 1 |
) |
References initialize().
| AmbisonicMixer::AmbisonicMixer | ( | unsigned | hOrder, | |
| unsigned | vOrder | |||
| ) |
References initialize().
| AmbisonicMixer::~AmbisonicMixer | ( | ) |
Destructor.
| void AmbisonicMixer::initialize | ( | ) |
Initializing method called by constructors.
References csl::Buffer::allocateBuffers(), csl::CGestalt::blockSize(), csl::AmbisonicOrder::horizontalOrder, csl::logMsg(), mInBuffer, csl::UnitGenerator::mNumChannels, csl::AmbisonicUnitGenerator::mOrder, and csl::AmbisonicOrder::verticalOrder.
Referenced by AmbisonicMixer().
| void AmbisonicMixer::addInput | ( | AmbisonicUnitGenerator & | input | ) |
methods for adding/removing inputs to the mixer.
References csl::AmbisonicOrder::horizontalOrder, csl::kLogError, csl::logMsg(), mInputs, mInvNumInputs, csl::AmbisonicUnitGenerator::mOrder, csl::AmbisonicUnitGenerator::order(), and csl::AmbisonicOrder::verticalOrder.
Referenced by csl::AmbisonicPanner::addSource(), and main().
| void AmbisonicMixer::addInput | ( | UnitGenerator & | input | ) |
| unsigned csl::AmbisonicMixer::numInputs | ( | ) | [inline] |
References mInputs.
| void AmbisonicMixer::nextBuffer | ( | Buffer & | outputBuffer, | |
| unsigned | outBufNum | |||
| ) | throw (CException) [virtual] |
Number of active inputs.
Reimplemented from csl::UnitGenerator.
References csl::UnitGenerator::isActive(), csl::kLogError, csl::logMsg(), and csl::UnitGenerator::nextBuffer().
UGenVector csl::AmbisonicMixer::mInputs [protected] |
Buffer* csl::AmbisonicMixer::mInBuffer [protected] |
float csl::AmbisonicMixer::mInvNumInputs [protected] |
1.5.8