13
0

Pan: remove VBAP requirement to access session

This commit is contained in:
Robin Gareus 2020-03-21 15:36:58 +01:00
parent bf894d80fb
commit 875f694380
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ static PanPluginDescriptor _descriptor = {
extern "C" ARDOURPANNER_API PanPluginDescriptor* panner_descriptor () { return &_descriptor; }
VBAPanner::Signal::Signal (Session&, VBAPanner&, uint32_t, uint32_t n_speakers)
VBAPanner::Signal::Signal (VBAPanner&, uint32_t, uint32_t n_speakers)
{
resize_gains (n_speakers);
@ -112,7 +112,7 @@ VBAPanner::configure_io (ChanCount in, ChanCount /* ignored - we use Speakers */
clear_signals ();
for (uint32_t i = 0; i < n; ++i) {
Signal* s = new Signal (_pannable->session(), *this, i, _speakers->n_speakers());
Signal* s = new Signal (*this, i, _speakers->n_speakers());
_signals.push_back (s);
}

View File

@ -76,7 +76,7 @@ private:
int desired_outputs[3]; /* outputs to use the next time we distribute */
double desired_gains[3]; /* target gains for desired_outputs */
Signal (Session&, VBAPanner&, uint32_t which, uint32_t n_speakers);
Signal (VBAPanner&, uint32_t which, uint32_t n_speakers);
void resize_gains (uint32_t n_speakers);
};