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

Function InitRemainderBuffer

source/Speaker.cpp:223–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221//=============================================================================
222
223static void InitRemainderBuffer()
224{
225 delete [] g_pRemainderBuffer;
226
227 SetClksPerSpkrSample();
228
229 g_nRemainderBufferSize = (UINT) g_fClksPerSpkrSample;
230 if ((double)g_nRemainderBufferSize < g_fClksPerSpkrSample)
231 g_nRemainderBufferSize++;
232
233 g_pRemainderBuffer = new short [g_nRemainderBufferSize];
234 memset(g_pRemainderBuffer, 0, g_nRemainderBufferSize);
235
236 g_nRemainderBufferIdx = 0;
237}
238
239//
240// ----- ALL GLOBALLY ACCESSIBLE FUNCTIONS ARE BELOW THIS LINE -----

Callers 3

SpkrInitializeFunction · 0.85
SpkrReinitializeFunction · 0.85
SpkrResetFunction · 0.85

Calls 1

SetClksPerSpkrSampleFunction · 0.85

Tested by

no test coverage detected