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

Method Rotate

libraries/lib-audio-graph/AudioGraphBuffers.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144size_t AudioGraph::Buffers::Rotate()
145{
146 auto oldRemaining = Remaining();
147 Rewind();
148 const auto free = BufferSize() - oldRemaining;
149 // Shift any partial block of unread data leftward
150 Discard(free, oldRemaining);
151 assert(IsRewound());
152 return oldRemaining;
153}
154
155constSamplePtr AudioGraph::Buffers::GetReadPosition(unsigned iChannel) const
156{

Callers 2

AcquireMethod · 0.45

Calls 3

RemainingFunction · 0.85
IsRewoundFunction · 0.85
BufferSizeFunction · 0.70

Tested by

no test coverage detected