13
0

for livetrax, Route::panner{._panner_shell}() should not use the Route's own

This commit is contained in:
Paul Davis 2024-04-02 18:12:56 -06:00
parent 4ac6485c60
commit dd1b6d592d

View File

@ -4863,13 +4863,24 @@ Route::pannable() const
std::shared_ptr<Panner>
Route::panner() const
{
/* may be null ! */
/* may return null ! */
if (Profile->get_livetrax() && _master_send) {
return _master_send->panner_shell()->panner();
}
return _main_outs->panner_shell()->panner();
}
std::shared_ptr<PannerShell>
Route::panner_shell() const
{
/* may return null ! */
if (Profile->get_livetrax() && _master_send) {
return _master_send->panner_shell();
}
return _main_outs->panner_shell();
}