MCPcopy Create free account
hub / github.com/devkitPro/libctru / ndspUpdateCapture

Function ndspUpdateCapture

libctru/source/ndsp/ndsp.c:223–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223static void ndspUpdateCapture(s16* samples, u32 count)
224{
225 ndspWaveBuf* buf = ndspMaster.capture;
226 if (!buf) return;
227 memcpy(&buf->data_pcm16[buf->offset*2], samples, count*4);
228 buf->offset += count;
229 if (buf->offset >= buf->nsamples)
230 buf->offset = 0;
231}
232
233static Result ndspInitialize(bool resume)
234{

Callers 1

ndspSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected