I am having difficulties playing audio starting at a specific time using BufferPlayerNode and the .start(when) method.
At runtime, an assertion is triggered in another thread:
Assertion failed: (frameOffset + numFrames <= this->getNumFrames()), function copyOffset, file /Users/callumhoward/codeoncanvas/Cinder.git/include/cinder/audio/Buffer.h, line 155.
frameOffset variable in the assertion frame appears like it may be uninitialised as it is a very large value:
frameOffset size_t 18446744073709442560
Steps to reproduce
I have come up with a simple way to reproduce this problem:
Start with the BufferPlayerApp sample code found here, and change line 82 from
to add a time to start from: 0.0.
expected behaviour should be identical to before the change.
I have searched the forums and github issues, but nothing seems to come up. I must be misunderstanding how it should be used.
I am on release 0.9.1 on macOS 10.12.6 using Xcode 8.3.3