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

Method Destroy

source/MockingboardCardManager.cpp:205–213  ·  view source on GitHub ↗

Called by CardManager::Destroy()

Source from the content-addressed store, hash-verified

203
204// Called by CardManager::Destroy()
205void MockingboardCardManager::Destroy(void)
206{
207 // NB. All cards (including any Mockingboard cards) have just been destroyed by CardManager
208
209 if (m_mockingboardVoice.lpDSBvoice && m_mockingboardVoice.bActive)
210 DSVoiceStop(&m_mockingboardVoice);
211
212 DSReleaseSoundBuffer(&m_mockingboardVoice);
213}
214
215// Called by ContinueExecution() at the end of every execution period (~1000 cycles or ~3 cycles when MODE_STEPPING)
216// NB. Required for FT's TEST LAB #1 player

Callers

nothing calls this directly

Calls 2

DSVoiceStopFunction · 0.85
DSReleaseSoundBufferFunction · 0.85

Tested by

no test coverage detected