-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
web/settings/audio: disable bitrate section when not applicable #802
Conversation
@@ -7,6 +7,7 @@ | |||
import Switcher from "$components/buttons/Switcher.svelte"; | |||
import SettingsButton from "$components/buttons/SettingsButton.svelte"; | |||
import SettingsToggle from "$components/buttons/SettingsToggle.svelte"; | |||
import settings from "$lib/state/settings"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this import should be on very top, before translations
@@ -23,7 +24,7 @@ | |||
</Switcher> | |||
</SettingsCategory> | |||
|
|||
<SettingsCategory sectionId="bitrate" title={$t("settings.audio.bitrate")}> | |||
<SettingsCategory sectionId="bitrate" title={$t("settings.audio.bitrate")} disabled={["wav", "best"].includes($settings.save.audioFormat)}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please expand this line into something like this, it's way too long
<SettingsCategory
sectionId="bitrate"
title={$t("settings.audio.bitrate")}
disabled={["wav", "best"].includes($settings.save.audioFormat)}
>
web/i18n/en/settings.json
Outdated
@@ -50,7 +50,7 @@ | |||
|
|||
"audio.bitrate": "audio bitrate", | |||
"audio.bitrate.kbps": "kb/s", | |||
"audio.bitrate.description": "bitrate applies only to audio conversion. cobalt can't improve the source audio quality, so choosing a bitrate over 128kbps may inflate the file size with no audible difference. perceived quality may vary by format.", | |||
"audio.bitrate.description": "bitrate only applies to audio conversion into lossy audio formats. cobalt can't improve the source audio quality, so choosing a bitrate over 128kbps may inflate the file size with no audible difference. perceived quality may vary by format.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"bitrate is applied only when converting audio to a lossy format."
please delete my closed pr thanks :3
if the audio format is either
best
orwav
,the bitrate selector should be greyed out,
cause it's lossless, or not necessarily re-encoded.