Skip to content

Commit

Permalink
refactor(unmuteAllChannels): remove unneeded channel muting mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciro Scognamiglio committed Oct 27, 2024
1 parent 3426615 commit 967af1b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/channels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,14 @@ void Channels::muteAllChannels()
void Channels::unmuteAllChannels()
{
unsigned int numChannels = SoundManager::getInstance().m_Info1->numChannels;
unsigned int mask = 0;
QString maskStr = "";
for (int i = 0; i < numChannels; i++)
{
mask |= 0 << i;
maskStr += "1";
channels.at(i)->setChecked(true);
}

if (SoundManager::getInstance().m_Info1->plugin = PLUGIN_libopenmpt || SoundManager::getInstance().m_Info1->plugin
== PLUGIN_libxmp)
{
mask = 0;
}
SoundManager::getInstance().MuteChannels(mask, maskStr);
SoundManager::getInstance().MuteChannels(0, maskStr);
}

void Channels::muteChannels()
Expand Down

0 comments on commit 967af1b

Please sign in to comment.