From c04e786647c2308337f7c4515960f5e1a1256a17 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Sun, 10 May 2020 23:10:13 +0100 Subject: [PATCH] Fix linear -> db conversion off-by-1 --- src/mixer/state.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mixer/state.ts b/src/mixer/state.ts index c5a8bf7..0f6d5f1 100644 --- a/src/mixer/state.ts +++ b/src/mixer/state.ts @@ -517,7 +517,8 @@ export const setVolume = ( uiLevel = 0.5; break; case "full": - volume = uiLevel = 1; + volume = 0; + uiLevel = 1; break; }