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

Function ReinitRemainderBuffer

source/Speaker.cpp:316–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314//=============================================================================
315
316static void ReinitRemainderBuffer(UINT nCyclesRemaining)
317{
318 if(nCyclesRemaining == 0)
319 return;
320
321 for(g_nRemainderBufferIdx=0; g_nRemainderBufferIdx<nCyclesRemaining; g_nRemainderBufferIdx++)
322 g_pRemainderBuffer[g_nRemainderBufferIdx] = g_nSpeakerData;
323
324 _ASSERT(g_nRemainderBufferIdx < g_nRemainderBufferSize);
325}
326
327static void UpdateRemainderBuffer(ULONG* pnCycleDiff)
328{

Callers 1

UpdateSpkrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected