-
Notifications
You must be signed in to change notification settings - Fork 469
Description
While looking for a solution to #472, exposed the as_nanos method of StreamInstant, and also added a method as_secs.
My expectation is that the playback timestamp, representing the playback time of the first sample in the block, always increases by the same amount, or put in a different way, the difference between the current playback timestamp and the last one should always be the same.
I haven't tested with other hosts so far, but at least with the JACK host, the difference from one call to the next constantly varies by a couple of microseconds from one call to the next.
The C++ library i'm most familiar with (RtAudio) does not show the same behavior, the timestamp passed to the audio callback increases constantly by the same amount of time.
This causes audible timing issues in the application I'm currently working on.