Skip to content

feat(nam): make the sample-rate bypass warning prominent - #305

Merged
OpenSauce merged 1 commit into
mainfrom
feat/nam-rate-mismatch-callout
Nov 23, 2026
Merged

OpenSauce merged 1 commit into
mainfrom
feat/nam-rate-mismatch-callout

Conversation

@OpenSauce

Copy link
Copy Markdown
Owner

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.

  • Stage pane: the one-liner is replaced by a bordered, tinted callout under the stage header:
    • heading BYPASSED: sample rate mismatch
    • model rate and engine rate in kHz; with oversampling on, the engine line shows the factor, e.g. 96 kHz (48 kHz × 2)
    • why it's bypassed (NAM models aren't resampled)
    • a "To use it:" line naming what to change: oversampling to 1×, the device rate, or both
  • Model list: the orange rate on mismatched rows now has a tooltip saying the model would be bypassed.
  • NamViewContext takes the device rate and oversampling separately so the callout can tell them apart.
  • New strings in both EN and ZH_CN; the old nam_rate_mismatch_bypassed string 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 lint
  • cargo test -p rustortion-ui (new rate_fix_names_the_setting_that_is_off test)
  • Visual check: load a 44.1 kHz model with the device at 48 kHz, then a 48 kHz model at 48 kHz with 2× oversampling

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.
@OpenSauce
OpenSauce merged commit 84b9158 into main Nov 23, 2026
10 checks passed
@OpenSauce
OpenSauce deleted the feat/nam-rate-mismatch-callout branch November 23, 2026 08:57
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