Skip to content

[JACK] timing imprecisions #507

@the-drunk-coder

Description

@the-drunk-coder

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions