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

Function SpkrUpdate_Timer

source/Speaker.cpp:460–470  ·  view source on GitHub ↗

Called from SoundCore_TimerFunc() for FADE_OUT

Source from the content-addressed store, hash-verified

458
459// Called from SoundCore_TimerFunc() for FADE_OUT
460void SpkrUpdate_Timer()
461{
462 UpdateSpkr();
463 ULONG nSamplesUsed;
464
465 nSamplesUsed = Spkr_SubmitWaveBuffer_FullSpeed(g_pSpeakerBuffer, g_nBufferIdx);
466
467 _ASSERT(nSamplesUsed <= g_nBufferIdx);
468 memmove(g_pSpeakerBuffer, &g_pSpeakerBuffer[nSamplesUsed], (g_nBufferIdx - nSamplesUsed) * sizeof(short) * g_nSPKR_NumChannels);
469 g_nBufferIdx -= nSamplesUsed;
470}
471
472//=============================================================================
473

Callers 1

SoundCore_TimerFuncFunction · 0.85

Calls 2

UpdateSpkrFunction · 0.85

Tested by

no test coverage detected