13
0

VBAP panner should use Panner::_angles not its own private azi/ele members : now actually pans but I'll be a muted frog on top of a woodshed if I can understand how the speaker pair selection process works (or doesn't)

git-svn-id: svn://localhost/ardour2/branches/3.0@8093 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-11-26 19:18:34 +00:00
parent 5a0c8cd79c
commit 1445bf5fc5
2 changed files with 2 additions and 4 deletions

View File

@ -52,8 +52,6 @@ class VBAPanner : public StreamPanner {
int load (std::istream&, std::string path, uint32_t&) { return 0; }
private:
double _azimuth; /* direction for the signal source */
double _elevation; /* elevation of the signal source */
bool _dirty;
double gains[3];
double desired_gains[3];

View File

@ -153,8 +153,8 @@ VBAPanner::do_distribute (AudioBuffer& srcbuf, BufferSet& obufs, gain_t gain_coe
bool was_dirty;
if ((was_dirty = _dirty)) {
compute_gains (desired_gains, desired_outputs, _azimuth, _elevation);
cerr << " @ " << _azimuth << " /= " << _elevation
compute_gains (desired_gains, desired_outputs, _angles.azi, _angles.ele);
cerr << " @ " << _angles.azi << " /= " << _angles.ele
<< " Outputs: "
<< desired_outputs[0] + 1 << ' '
<< desired_outputs[1] + 1 << ' '