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

Function PadNFrames

source/Speaker.cpp:194–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194static void PadNFrames(short* dest, uint32_t sizeBytes)
195{
196 if (sizeBytes)
197 {
198 const UINT numSamples = sizeBytes / (sizeof(short) * g_nSPKR_NumChannels);
199 UINT index = 0;
200 for (UINT i = 0; i < numSamples; i++)
201 {
202 QueueOneFrame(dest, index, g_nSpeakerData);
203 }
204 if (g_bSpkrOutputToRiff)
205 RiffPutSamples(dest, numSamples);
206 }
207}
208
209//=============================================================================
210

Callers 1

Calls 2

QueueOneFrameFunction · 0.85
RiffPutSamplesFunction · 0.85

Tested by

no test coverage detected