Skip to content
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

implements heuristic for silent sound cards on windows #167

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

bastibe
Copy link
Owner

@bastibe bastibe commented Feb 24, 2023

on Windows, some soundcards indicate silence by returning zeros. Others however indicate silence by returning no data at all. This commit adds a heuristic output that estimates an appropriate length of zeros when the sound card is not returning any data.

The length of the zeros is based on measuring the wall-clock time, and might be off by up to four device periods when the sound card starts/stops playing. This is not usually a problem, however, since we're only missing silence anyway.

on Windows, some soundcards indicate silence by returning zeros.
Others however indicate silence by returning no data at all. This
commit adds a heuristic output that estimates an appropriate length of
zeros when the sound card is not returning any data.

The length of the zeros is based on measuring the wall-clock time, and
might be off by up to four device periods when the sound card
starts/stops playing. This is not usually a problem, however, since
we're only missing silence anyway.
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.

1 participant