all repos — mgba @ f98da2ab3ff0a8c7171c256ead46f819536618e2

mGBA Game Boy Advance Emulator

Qt: Fix disabling audio channels
Vicki Pfau vi@endrift.com
Sat, 22 Jun 2019 22:02:10 -0700
commit

f98da2ab3ff0a8c7171c256ead46f819536618e2

parent

0a06f4dad025ed321de45acfb16d7a67c3b83a87

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -787,7 +787,7 @@ }

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); }