#include <Mixer.h>

Public Member Functions | |
| Mixer () | |
| Constructors. | |
| Mixer (unsigned chans) | |
| Mixer (UnitGenerator &mScale) | |
| Mixer (unsigned chans, UnitGenerator &mScale) | |
| virtual | ~Mixer () |
| UGenVector | getInputs (void) |
| unsigned | getNumInputs (void) |
| list of inputs, arbitrary # of channels | |
| void | addInput (UnitGenerator &inp) |
| add/remove inputs | |
| void | addInput (UnitGenerator *inp) |
| void | removeInput (UnitGenerator &inp) |
| void | deleteInputs () |
| void | nextBuffer (Buffer &outputBuffer) throw (CException) |
| fill the buffer with the next buffer_length of values | |
| void | dump () |
| print info about this instance | |
| unsigned | activeSources () |
Protected Member Functions | |
| void | allocateOpBuffer (unsigned chans) |
| allocate the op buffer | |
Protected Attributes | |
| UGenVector | mSources |
| list of inputs, arbitrary # of channels | |
| Buffer | mOpBuffer |
| buffer used for operations, if needed | |
This is like a binary operator, except that it has an array of inputs and cycles through them for each output buffer. Clients can add and remove inputs at run-time.
| Mixer::Mixer | ( | ) |
| Mixer::Mixer | ( | unsigned | chans | ) |
References allocateOpBuffer().
| Mixer::Mixer | ( | UnitGenerator & | mScale | ) |
References allocateOpBuffer().
| Mixer::Mixer | ( | unsigned | chans, | |
| UnitGenerator & | mScale | |||
| ) |
References allocateOpBuffer().
| Mixer::~Mixer | ( | ) | [virtual] |
References csl::Buffer::freeBuffers(), and mOpBuffer.
| UGenVector csl::Mixer::getInputs | ( | void | ) | [inline] |
References mSources.
| unsigned csl::Mixer::getNumInputs | ( | void | ) | [inline] |
| void Mixer::addInput | ( | UnitGenerator & | inp | ) |
add/remove inputs
number of active inputs
References mSources.
Referenced by main(), testManyDynamicFilters(), and testMultiTap().
| void Mixer::addInput | ( | UnitGenerator * | inp | ) |
References mSources.
| void Mixer::removeInput | ( | UnitGenerator & | inp | ) |
References mSources.
| void Mixer::deleteInputs | ( | ) |
| void Mixer::nextBuffer | ( | Buffer & | outputBuffer | ) | throw (CException) [virtual] |
fill the buffer with the next buffer_length of values
Reimplemented from csl::UnitGenerator.
References DECLARE_SCALABLE_CONTROLS, csl::UnitGenerator::isActive(), testkiss::j, csl::kLogError, LOAD_SCALABLE_CONTROLS, csl::logMsg(), csl::UnitGenerator::nextBuffer(), csl::UnitGenerator::numChannels(), and UPDATE_SCALABLE_CONTROLS.
| void Mixer::dump | ( | void | ) | [virtual] |
| unsigned Mixer::activeSources | ( | ) |
References csl::UnitGenerator::isActive(), and mSources.
| void Mixer::allocateOpBuffer | ( | unsigned | chans | ) | [protected] |
allocate the op buffer
References csl::Buffer::allocateBuffers(), csl::CGestalt::blockSize(), csl::UnitGenerator::mNumChannels, mOpBuffer, and csl::Buffer::setSize().
Referenced by Mixer().
UGenVector csl::Mixer::mSources [protected] |
list of inputs, arbitrary # of channels
Referenced by activeSources(), addInput(), deleteInputs(), dump(), getInputs(), getNumInputs(), and removeInput().
Buffer csl::Mixer::mOpBuffer [protected] |
1.5.8