Skip to content

Commit

Permalink
refactor: Rename [MasterOutput] to [MainOutput] and add group alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Sep 10, 2023
1 parent 2ebfb25 commit b0869d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/effects/chains/outputeffectchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ OutputEffectChain::OutputEffectChain(EffectsManager* pEffectsManager,
const QSet<ChannelHandleAndGroup>& registeredChannels =
m_pEffectsManager->registeredInputChannels();
for (const ChannelHandleAndGroup& handle_group : registeredChannels) {
if (handle_group.name() == "[MasterOutput]") {
if (handle_group.name() == "[MainOutput]") {
mainHandleAndGroup = &handle_group;
break;
}
Expand Down
4 changes: 3 additions & 1 deletion src/engine/enginemixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ EngineMixer::EngineMixer(
m_balrightOld(1.0),
m_mainHandle(registerChannelGroup(group)),
m_headphoneHandle(registerChannelGroup("[Headphone]")),
m_mainOutputHandle(registerChannelGroup("[MasterOutput]")),
m_mainOutputHandle(registerChannelGroup("[MainOutput]")),
m_busTalkoverHandle(registerChannelGroup("[BusTalkover]")),
m_busCrossfaderLeftHandle(registerChannelGroup("[BusLeft]")),
m_busCrossfaderCenterHandle(registerChannelGroup("[BusCenter]")),
m_busCrossfaderRightHandle(registerChannelGroup("[BusRight]")) {
ControlDoublePrivate::insertGroupAlias(
QStringLiteral("[MasterOutput]"), QStringLiteral("[MainOutput]"));
pEffectsManager->registerInputChannel(m_mainHandle);
pEffectsManager->registerInputChannel(m_headphoneHandle);
pEffectsManager->registerOutputChannel(m_mainHandle);
Expand Down

0 comments on commit b0869d5

Please sign in to comment.