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

Clamp the max Sound Blaster 16 sample rate to 45454 Hz, not 45000 Hz #2676

Merged
merged 1 commit into from Jul 12, 2023

Conversation

johnnovak
Copy link
Member

@johnnovak johnnovak commented Jul 12, 2023

45454 Hz is the native DAC rate and thus the highest achievable sample rate on the SB16, and many programs use that rate. Clamping to 45000 Hz would result in a slightly lower pitch in such programs.

The official programming guide is simply wrong when it states the following:

"Valid output rates range from 5000 to 45 000 Hz, inclusive."

This was a quite obscure regression; see this thread for details on how I ran into it:
https://www.vogons.org/viewtopic.php?f=62&t=88524

45454 Hz is the native DAC rate and thus the highest achievable sample
rate on the SB16, and many programs use that rate. Clamping to 45000 Hz
would result in a slightly lower pitch in such programs.

The official programming guide is simply wrong when it states the
following:

"Valid output rates range from 5000 to 45 000 Hz, inclusive."
@johnnovak johnnovak self-assigned this Jul 12, 2023
@johnnovak johnnovak added audio Audio related issues or enhancements regression We broke something 😊 labels Jul 12, 2023
@johnnovak johnnovak merged commit 4e0df1c into main Jul 12, 2023
52 checks passed
@kcgen kcgen deleted the jn/fix-sb16-max-sample-rate branch August 1, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Audio related issues or enhancements regression We broke something 😊
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants