Repository navigation
feat(nam): make the sample-rate bypass warning prominent - #305
Merged
Merged
Conversation
Replace the one-line mismatch text with a bordered callout that states the stage is bypassed, shows model and engine rates (with the oversampling factor), explains the dry passthrough and names the setting to change. Mismatched rows in the model list get a tooltip saying so.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A NAM model whose native rate differs from the engine rate is bypassed (dry passthrough, no resampling), but the NAM tab only said so in a single line of orange text, easy to miss.
96 kHz (48 kHz × 2)NamViewContexttakes the device rate and oversampling separately so the callout can tell them apart.nam_rate_mismatch_bypassedstring is removed.The oversampling case is the one people are likely to trip on: NAM runs after the upsampler, so a 48 kHz model on a 48 kHz device is still bypassed at 2× oversampling.
Test plan
make lintcargo test -p rustortion-ui(newrate_fix_names_the_setting_that_is_offtest)