MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / MuteControl

Method MuteControl

source/MockingboardCardManager.cpp:73–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void MockingboardCardManager::MuteControl(bool mute)
74{
75 for (UINT i = SLOT0; i < NUM_SLOTS; i++)
76 {
77 if (IsMockingboard(i))
78 dynamic_cast<MockingboardCard&>(GetCardMgr().GetRef(i)).MuteControl(mute);
79 }
80
81 if (mute)
82 {
83 if (m_mockingboardVoice.bActive && !m_mockingboardVoice.bMute)
84 {
85 m_mockingboardVoice.lpDSBvoice->SetVolume(DSBVOLUME_MIN);
86 m_mockingboardVoice.bMute = true;
87 }
88 }
89 else
90 {
91 if (m_mockingboardVoice.bActive && m_mockingboardVoice.bMute)
92 {
93 m_mockingboardVoice.lpDSBvoice->SetVolume(m_mockingboardVoice.nVolume);
94 m_mockingboardVoice.bMute = false;
95 }
96 }
97}
98
99void MockingboardCardManager::SetCumulativeCycles(void)
100{

Callers

nothing calls this directly

Calls 1

SetVolumeMethod · 0.45

Tested by

no test coverage detected