Skip to content

Add method to query latency from Stream #964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcpabst
Copy link

@marcpabst marcpabst commented Mar 24, 2025

This is initial work to enable getting the current latency in samples from a Stream. The latency() -> Option<u32> method returns None by default, so this will already compile with all backends. So far, an implementation for coreaudio on MacOS is provided.

Addreses #773.

@marcpabst marcpabst marked this pull request as ready for review March 25, 2025 21:13
@marcpabst
Copy link
Author

marcpabst commented Mar 25, 2025

I think this can be reviewed now - so far it only implements latency() for MacOS Core Audio but should be easy enough to support other backends too.

@marcpabst
Copy link
Author

marcpabst commented Apr 3, 2025

Could I get some feedback on this? I'm considering pouring some work into cpal (including improvments to the WASAPI backend) but I don't really want to maintain by own fork...

Edit: This was not meant to be offsensive at all, but it would be good to see if there's interest in this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants