MCPcopy Create free account
hub / github.com/audacity/audacity / receiveSamples

Method receiveSamples

lib-src/soundtouch/source/SoundTouch/FIFOSampleBuffer.cpp:217–225  ·  view source on GitHub ↗

Output samples from beginning of the sample buffer. Copies demanded number of samples to output and removes them from the sample buffer. If there are less than 'numsample' samples in the buffer, returns all available. Returns number of samples copied.

Source from the content-addressed store, hash-verified

215//
216// Returns number of samples copied.
217uint FIFOSampleBuffer::receiveSamples(SAMPLETYPE *output, uint maxSamples)
218{
219 uint num;
220
221 num = (maxSamples > samplesInBuffer) ? samplesInBuffer : maxSamples;
222
223 memcpy(output, ptrBegin(), channels * sizeof(SAMPLETYPE) * num);
224 return receiveSamples(num);
225}
226
227
228// Removes samples from the beginning of the sample buffer without copying them

Callers 8

ProcessOneMethod · 0.45
ProcessStereoResultsMethod · 0.45
processFunction · 0.45
processSamplesMethod · 0.45
inputSamplesMethod · 0.45
upsampleMethod · 0.45
downsampleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected