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

Function QueueOneFrame

source/Speaker.cpp:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182//=============================================================================
183
184static void QueueOneFrame(short* dest, UINT& index, short sample_in)
185{
186 // add one frame to the speaker buffer
187 const short sample = DCFilter(sample_in);
188 short * begin = dest + (index * g_nSPKR_NumChannels);
189 std::fill_n(begin, g_nSPKR_NumChannels, sample);
190 // and advance its position
191 index++;
192}
193
194static void PadNFrames(short* dest, uint32_t sizeBytes)
195{

Callers 3

PadNFramesFunction · 0.85
UpdateRemainderBufferFunction · 0.85
UpdateSpkrFunction · 0.85

Calls 1

DCFilterFunction · 0.85

Tested by

no test coverage detected