#include <Ambisonic.h>

Public Member Functions | |
| AmbisonicEncoder () | |
| Default constructor. | |
| AmbisonicEncoder (SpatialSource &input, unsigned order=1) | |
| Initialize with uniform Ambisonic order. | |
| AmbisonicEncoder (SpatialSource &input, unsigned horder, unsigned vorder) | |
| Initialize with hybrid Ambisonic order. | |
| virtual | ~AmbisonicEncoder () |
| Destructor. | |
| void | setInput (SpatialSource &input) |
| Set my input. | |
| SpatialSource * | input () |
| virtual void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
| Does the DSP processing for the Ambisonic Encoder. | |
Protected Member Functions | |
| void | initialize () |
| Initializing method called by constructors. | |
Protected Attributes | |
| SampleBuffer | mWeights |
| Encoding weights for each order (per source). | |
| Port * | mInputPort |
| Holds the input to be encoded. | |
| AmbisonicEncoder::AmbisonicEncoder | ( | ) |
Default constructor.
| AmbisonicEncoder::AmbisonicEncoder | ( | SpatialSource & | input, | |
| unsigned | order = 1 | |||
| ) |
| AmbisonicEncoder::AmbisonicEncoder | ( | SpatialSource & | input, | |
| unsigned | horder, | |||
| unsigned | vorder | |||
| ) |
| AmbisonicEncoder::~AmbisonicEncoder | ( | ) | [virtual] |
| void AmbisonicEncoder::setInput | ( | SpatialSource & | input | ) |
Set my input.
Use to set the input to be encoded.
References csl::UnitGenerator::addOutput(), csl::logMsg(), mInputPort, csl::Port::mUGen, and csl::UnitGenerator::removeOutput().
Referenced by AmbisonicEncoder().
| SpatialSource* csl::AmbisonicEncoder::input | ( | ) | [inline] |
References mInputPort, and csl::Port::mUGen.
| void AmbisonicEncoder::nextBuffer | ( | Buffer & | outputBuffer, | |
| unsigned | outBufNum | |||
| ) | throw (CException) [virtual] |
Does the DSP processing for the Ambisonic Encoder.
Reimplemented from csl::UnitGenerator.
References csl::SpatialSource::azimuth(), csl::SpatialSource::elevation(), csl::fumaEncodingWeights(), testkiss::j, csl::kLogError, csl::kSamples, csl::logMsg(), csl::Buffer::mBuffers, csl::Buffer::mIsPopulated, csl::Buffer::mNumFrames, and csl::Buffer::mType.
| void AmbisonicEncoder::initialize | ( | ) | [protected] |
Initializing method called by constructors.
References AMBI_INVSQRT2, csl::UnitGenerator::mNumChannels, and mWeights.
Referenced by AmbisonicEncoder().
SampleBuffer csl::AmbisonicEncoder::mWeights [protected] |
Port* csl::AmbisonicEncoder::mInputPort [protected] |
1.5.8