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

Method InitializeForLoadingSnapshot

source/MockingboardCardManager.cpp:62–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void MockingboardCardManager::InitializeForLoadingSnapshot(void)
63{
64 if (g_bDisableDirectSound || g_bDisableDirectSoundMockingboard)
65 return;
66
67 if (!m_mockingboardVoice.lpDSBvoice)
68 return;
69
70 DSVoiceStop(&m_mockingboardVoice); // Reason: 'MB voice is playing' then loading a save-state where 'no MB present' (GH#609)
71}
72
73void MockingboardCardManager::MuteControl(bool mute)
74{

Callers 1

Snapshot_LoadState_v2Function · 0.80

Calls 1

DSVoiceStopFunction · 0.85

Tested by

no test coverage detected