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

Method GetReadPosition

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

Source from the content-addressed store, hash-verified

153}
154
155constSamplePtr AudioGraph::Buffers::GetReadPosition(unsigned iChannel) const
156{
157 iChannel = std::min(iChannel, Channels() - 1);
158 auto buffer = mBuffers[iChannel].data();
159 return reinterpret_cast<constSamplePtr>(buffer);
160}
161
162float &AudioGraph::Buffers::GetWritePosition(unsigned iChannel)
163{

Callers 3

DoConsumeMethod · 0.80
AcquireMethod · 0.80
ProcessMethod · 0.80

Calls 3

ChannelsFunction · 0.70
minFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected