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

Method moveSamples

lib-src/soundtouch/include/FIFOSamplePipe.h:83–90  ·  view source on GitHub ↗

Moves samples from the 'other' pipe instance to this instance.

Source from the content-addressed store, hash-verified

81
82 // Moves samples from the 'other' pipe instance to this instance.
83 void moveSamples(FIFOSamplePipe &other ///< Other pipe instance where from the receive the data.
84 )
85 {
86 int oNumSamples = other.numSamples();
87
88 putSamples(other.ptrBegin(), oNumSamples);
89 other.receiveSamples(oNumSamples);
90 };
91
92 /// Output samples from beginning of the sample buffer. Copies requested samples to
93 /// output buffer and removes them from the sample buffer. If there are less than

Callers 2

putSamplesMethod · 0.80

Calls 3

numSamplesMethod · 0.45
ptrBeginMethod · 0.45
receiveSamplesMethod · 0.45

Tested by

no test coverage detected