Skip to content

feat: add StreamTrait::now() and overhaul StreamInstant API#1139

Open
roderickvd wants to merge 17 commits intomasterfrom
feat/stream-instant-overhaul
Open

feat: add StreamTrait::now() and overhaul StreamInstant API#1139
roderickvd wants to merge 17 commits intomasterfrom
feat/stream-instant-overhaul

Conversation

@roderickvd
Copy link
Copy Markdown
Member

  • Added StreamTrait::now() so callers can query the stream clock outside the audio callback on the same time base as callback/capture/playback timestamps.

  • Refactored StreamInstant to mirror std::time::Instant with u64 storage (all stream clocks are monotonic and non-negative) and similar functions parameters, and return types.

Closes #472

- Adds now() to StreamTrait so callers can query the stream clock outside
  the audio callback on the same time base as callback/capture/playback
  timestamps.

- StreamInstant is reworked to mirror std::time::Instant with u64 storage
  (all stream clocks are monotonic and non-negative) and similar functions
  parameters, and return types.

Closes #472

This comment was marked as resolved.

@roderickvd roderickvd marked this pull request as ready for review March 30, 2026 19:54
@roderickvd roderickvd requested a review from Copilot March 30, 2026 19:54

This comment was marked as resolved.

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Access to timestamp values

2 participants