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

Method readAsyncImpl

src/cinder/audio/SamplePlayerNode.cpp:403–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void FilePlayerNode::readAsyncImpl()
404{
405 size_t lastReadPos = mReadPos;
406 while( true ) {
407 unique_lock<mutex> lock( mAsyncReadMutex );
408 mIssueAsyncReadCond.wait( lock );
409
410 if( mAsyncReadShouldQuit )
411 return;
412
413 size_t readPos = mReadPos;
414 if( readPos != lastReadPos )
415 mSourceFile->seek( readPos );
416
417 readImpl();
418 lastReadPos = mReadPos;
419 }
420}
421
422void FilePlayerNode::readImpl()
423{

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected