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

Method ptrEnd

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

Returns a pointer to the end of the used part of the sample buffer (i.e. where the new samples are to be inserted). This function may be used for inserting new samples into the sample buffer directly. Please be careful! Parameter 'slackCapacity' tells the function how much free capacity (in terms of samples) there _at least_ should be, in order to the caller to succesfully insert all the required

Source from the content-addressed store, hash-verified

138// to increase the sample count afterwards, by calling the
139// 'putSamples(numSamples)' function.
140SAMPLETYPE *FIFOSampleBuffer::ptrEnd(uint slackCapacity)
141{
142 ensureCapacity(samplesInBuffer + slackCapacity);
143 return buffer + samplesInBuffer * channels;
144}
145
146
147// Returns a pointer to the beginning of the currently non-outputted samples.

Callers 4

processSamplesMethod · 0.80
upsampleMethod · 0.80
downsampleMethod · 0.80
processSamplesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected