Pan: remove VBAP requirement to access session
This commit is contained in:
parent
bf894d80fb
commit
875f694380
@ -61,7 +61,7 @@ static PanPluginDescriptor _descriptor = {
|
|||||||
|
|
||||||
extern "C" ARDOURPANNER_API PanPluginDescriptor* panner_descriptor () { return &_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);
|
resize_gains (n_speakers);
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ VBAPanner::configure_io (ChanCount in, ChanCount /* ignored - we use Speakers */
|
|||||||
clear_signals ();
|
clear_signals ();
|
||||||
|
|
||||||
for (uint32_t i = 0; i < n; ++i) {
|
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);
|
_signals.push_back (s);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ private:
|
|||||||
int desired_outputs[3]; /* outputs to use the next time we distribute */
|
int desired_outputs[3]; /* outputs to use the next time we distribute */
|
||||||
double desired_gains[3]; /* target gains for desired_outputs */
|
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);
|
void resize_gains (uint32_t n_speakers);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user