#include <VBAP.h>
Public Member Functions | |
| SpeakerSetLayout (SpeakerLayout *aLayout, VBAPMode mode=kAuto) | |
| Constructors & destructor:. | |
| ~SpeakerSetLayout () | |
| destructor | |
| SpeakerLayout * | speakerLayout () |
| Returns the Speaker Layout used to find the triplets. | |
| void | dump () |
Private Member Functions | |
| void | findSpeakerTriplets () throw (CException) |
| void | findSpeakerPairs () throw (CException) |
| void | invertTripleMatrix (SpeakerSet *lst) |
| void | addTriple (SpeakerSet *lst) |
| void | removeTriple (SpeakerSet *lst) |
| bool | evaluateCrossing (CPoint &li, CPoint &lj, CPoint &ln, CPoint &lm) |
Private Attributes | |
| SpeakerSet ** | mTriplets |
| SpeakerLayout * | mSpeakerLayout |
| unsigned | mNumTriplets |
| unsigned | mMode |
Friends | |
| class | VBAP |
| SpeakerSetLayout::SpeakerSetLayout | ( | SpeakerLayout * | aLayout, | |
| VBAPMode | mode = kAuto | |||
| ) |
Constructors & destructor:.
default constructor. Creates an empty speaker layout.
References dump(), findSpeakerPairs(), findSpeakerTriplets(), csl::SpeakerLayout::isPeriphonic(), csl::kAuto, csl::kPantophonic, csl::kPeriphonic, MAX_NUM_VBAP_TRIPLETS, mMode, mNumTriplets, mSpeakerLayout, and mTriplets.
| SpeakerSetLayout::~SpeakerSetLayout | ( | ) |
| SpeakerLayout* csl::SpeakerSetLayout::speakerLayout | ( | ) | [inline] |
| void SpeakerSetLayout::dump | ( | void | ) |
| void SpeakerSetLayout::findSpeakerTriplets | ( | ) | throw (CException) [private] |
References addTriple(), csl::CPoint::distance(), testkiss::e, evaluateCrossing(), Connection::firstNode, invertTripleMatrix(), testkiss::j, MIN_VOLUME_TO_LENGTH_RATIO, mMode, mNumTriplets, mSpeakerLayout, mTriplets, csl::SpeakerSet::nodes, csl::SpeakerLayout::numSpeakers(), csl::Speaker::position(), removeTriple(), Connection::secondNode, csl::SpeakerLayout::speakerAtIndex(), vecAngle(), vectorMultiply(), csl::CPoint::x, csl::CPoint::y, and csl::CPoint::z.
Referenced by SpeakerSetLayout().
| void SpeakerSetLayout::findSpeakerPairs | ( | ) | throw (CException) [private] |
| void SpeakerSetLayout::invertTripleMatrix | ( | SpeakerSet * | lst | ) | [private] |
References math::matrix::Inv(), csl::SpeakerSet::invL, testkiss::j, mMode, mSpeakerLayout, csl::SpeakerSet::nodes, csl::Speaker::position(), and csl::SpeakerLayout::speakerAtIndex().
Referenced by findSpeakerPairs(), and findSpeakerTriplets().
| void SpeakerSetLayout::addTriple | ( | SpeakerSet * | lst | ) | [private] |
References MAX_NUM_VBAP_TRIPLETS, mNumTriplets, and mTriplets.
Referenced by findSpeakerPairs(), and findSpeakerTriplets().
| void SpeakerSetLayout::removeTriple | ( | SpeakerSet * | lst | ) | [private] |
friend class VBAP [friend] |
SpeakerSet** csl::SpeakerSetLayout::mTriplets [private] |
Referenced by addTriple(), dump(), findSpeakerTriplets(), removeTriple(), SpeakerSetLayout(), and ~SpeakerSetLayout().
Referenced by findSpeakerPairs(), findSpeakerTriplets(), invertTripleMatrix(), speakerLayout(), and SpeakerSetLayout().
unsigned csl::SpeakerSetLayout::mNumTriplets [private] |
Referenced by addTriple(), dump(), findSpeakerTriplets(), removeTriple(), SpeakerSetLayout(), and ~SpeakerSetLayout().
unsigned csl::SpeakerSetLayout::mMode [private] |
Referenced by findSpeakerTriplets(), invertTripleMatrix(), and SpeakerSetLayout().
1.5.8