MCPcopy Create free account
hub / github.com/cinder/Cinder / getRecordedCopy

Method getRecordedCopy

src/cinder/audio/SampleRecorderNode.cpp:155–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155BufferRef BufferRecorderNode::getRecordedCopy() const
156{
157 // first grab the number of current frames, which may be increasing as the recording continues.
158 size_t numFrames = mWritePos;
159 mCopiedBuffer->setSize( numFrames, mRecorderBuffer.getNumChannels() );
160
161 mCopiedBuffer->copy( mRecorderBuffer, numFrames );
162 return mCopiedBuffer;
163}
164
165void BufferRecorderNode::writeToFile( const fs::path &filePath, SampleType sampleType )
166{

Callers 1

drawMethod · 0.80

Calls 3

setSizeMethod · 0.45
getNumChannelsMethod · 0.45
copyMethod · 0.45

Tested by 1

drawMethod · 0.64