Skip to content

Commit

Permalink
Qt: Fix disabling audio channels
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Jun 23, 2019
1 parent 0a06f4d commit f98da2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/qt/Window.cpp
Expand Up @@ -787,7 +787,7 @@ void Window::gameStarted() {
if (nAudio) {
for (size_t i = 0; i < nAudio; ++i) {
Action* action = m_actions.addBooleanAction(audioChannels[i].visibleName, QString("audioChannel.%1").arg(audioChannels[i].internalName), [this, audioChannels, i](bool enable) {
m_controller->thread()->core->enableVideoLayer(m_controller->thread()->core, audioChannels[i].id, enable);
m_controller->thread()->core->enableAudioChannel(m_controller->thread()->core, audioChannels[i].id, enable);
}, "audioChannels");
action->setActive(true);
}
Expand Down

0 comments on commit f98da2a

Please sign in to comment.