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

Method ptrBegin

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

Returns a pointer to the beginning of the currently non-outputted samples. This function is provided for accessing the output samples directly. Please be careful! When using this function to output samples, also remember to 'remove' the outputted samples from the buffer by calling the 'receiveSamples(numSamples)' function

Source from the content-addressed store, hash-verified

152// outputted samples from the buffer by calling the
153// 'receiveSamples(numSamples)' function
154SAMPLETYPE *FIFOSampleBuffer::ptrBegin()
155{
156 assert(buffer);
157 return buffer + bufferPos * channels;
158}
159
160
161// Ensures that the buffer has enought capacity, i.e. space for _at least_

Callers 4

processSamplesMethod · 0.45
updateXCorrMethod · 0.45
upsampleMethod · 0.45
downsampleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected