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:
parent
5a0c8cd79c
commit
1445bf5fc5
@ -52,8 +52,6 @@ class VBAPanner : public StreamPanner {
|
|||||||
int load (std::istream&, std::string path, uint32_t&) { return 0; }
|
int load (std::istream&, std::string path, uint32_t&) { return 0; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
double _azimuth; /* direction for the signal source */
|
|
||||||
double _elevation; /* elevation of the signal source */
|
|
||||||
bool _dirty;
|
bool _dirty;
|
||||||
double gains[3];
|
double gains[3];
|
||||||
double desired_gains[3];
|
double desired_gains[3];
|
||||||
|
@ -153,8 +153,8 @@ VBAPanner::do_distribute (AudioBuffer& srcbuf, BufferSet& obufs, gain_t gain_coe
|
|||||||
bool was_dirty;
|
bool was_dirty;
|
||||||
|
|
||||||
if ((was_dirty = _dirty)) {
|
if ((was_dirty = _dirty)) {
|
||||||
compute_gains (desired_gains, desired_outputs, _azimuth, _elevation);
|
compute_gains (desired_gains, desired_outputs, _angles.azi, _angles.ele);
|
||||||
cerr << " @ " << _azimuth << " /= " << _elevation
|
cerr << " @ " << _angles.azi << " /= " << _angles.ele
|
||||||
<< " Outputs: "
|
<< " Outputs: "
|
||||||
<< desired_outputs[0] + 1 << ' '
|
<< desired_outputs[0] + 1 << ' '
|
||||||
<< desired_outputs[1] + 1 << ' '
|
<< desired_outputs[1] + 1 << ' '
|
||||||
|
Loading…
Reference in New Issue
Block a user