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

Fix default resampling quality selection #95

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

farshield
Copy link

When the user doesn't explicitly specify the resampling quality using the -Q flag, the quality should be calculated based on Jack's server sampling rate.

This isn't the case, because the rqual variable is always set to 16 in jack_initialize. This results in the quality always being 16.

To fix this and make the behavior the same as the zita-ajbridge tools, the redundant rqual clamping of the value to the range [16,96] should be removed from jack_initialize(), because this is done later in jack_initialize_part2() only AFTER the quality calculation.

@farshield farshield changed the title Fix default resampling quality selection #94 Fix default resampling quality selection Feb 1, 2025
@farshield farshield changed the title #94 Fix default resampling quality selection Fix default resampling quality selection Feb 1, 2025
When the user doesn't explicitly specify the resampling quality using the `-Q`
flag, the quality should be calculated based on Jack's server sampling rate.

This isn't the case, because the `rqual` variable is always set to 16 in
`jack_initialize`. This results in the quality always being 16.

To fix this and make the behavior the same as the `zita-ajbridge` tools, the
redundant `rqual` clamping of the value to the range `[16,96]` should be
removed from `jack_initialize()`, because this is done later in
`jack_initialize_part2()` only AFTER the quality calculation.
@farshield farshield force-pushed the fix-default-quality branch from 31435ff to 87fca05 Compare February 1, 2025 13:05
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