`StreamTrait::now()` should be fallible

Open
#1,385 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

Read the definitions of StreamTrait::now() and ErrorKind::StreamInvalidated, then check the platform implementations and tests for stream timestamps. Determine how the API can report invalidation and update the relevant tests; done means invalidated streams can return an error instead of a valid timestamp.

Written by the indexing model from the issue text.

Description

API design

Stream handles can become invalid (ErrorKind::StreamInvalidated), and an invalidated stream should not have to return valid stream timestamps.

Dominant language
Rust
Stars
4k
Forks
554
Avg merge
1d 3h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RustAudio/cpal

All issues in RustAudio/cpal

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.