This commit is contained in:
Half-Shot
2024-11-07 16:42:43 +00:00
committed by Robin
parent c560b58811
commit 06a02b4dd8
4 changed files with 34 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ import {
developerSettingsTab as developerSettingsTabSetting,
duplicateTiles as duplicateTilesSetting,
useOptInAnalytics,
effectSoundVolume,
soundEffectVolumeSetting,
} from "./settings";
import { isFirefox } from "../Platform";
import { PreferencesSettingsTab } from "./PreferencesSettingsTab";
@@ -118,7 +118,7 @@ export const SettingsModal: FC<Props> = ({
const devices = useMediaDevices();
useMediaDeviceNames(devices, open);
const [soundVolume, setSoundVolume] = useSetting(effectSoundVolume);
const [soundVolume, setSoundVolume] = useSetting(soundEffectVolumeSetting);
const audioTab: Tab<SettingsTab> = {
key: "audio",

View File

@@ -100,6 +100,9 @@ export const playReactionsSound = new Setting<boolean>(
true,
);
export const effectSoundVolume = new Setting<number>("effects-sound-volume", 1);
export const soundEffectVolumeSetting = new Setting<number>(
"sound-effect-volume",
1,
);
export const alwaysShowSelf = new Setting<boolean>("always-show-self", true);