-
Notifications
You must be signed in to change notification settings - Fork 465
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
base: master
Are you sure you want to change the base?
Conversation
|
I think this can be reviewed now - so far it only implements |
|
Could I get some feedback on this? I'm considering pouring some work into Edit: This was not meant to be offsensive at all, but it would be good to see if there's interest in this! |
|
@marcpabst I got added as maintainer and am doing some backlog grooming. Yes there is interest in this. I'd like to ensure that a sensical number of hosts would be supported coming out of the gates. So beyond CoreAudio also Alsa and WASAPI? |
Add buffer_size() method to Stream trait that returns the number of frames passed to each data callback invocation (actual size or upper limit depending on platform). AAudio improvements: - BufferSize::Default now explicitly configures using optimal burst size from AudioManager, following Android low-latency audio best practices - buffer_size() query falls back to burst size if frames_per_data_callback was not explicitly set - Refactored buffer configuration to eliminate code duplication Addresses #1042 Relates to #964, #942
This is initial work to enable getting the current latency in samples from a Stream. The
latency() -> Option<u32>method returnsNoneby default, so this will already compile with all backends. So far, an implementation for coreaudio on MacOS is provided.Addreses #773.