From c8351546aaff4da5e1cf75b5acd3e9fdd2d41f95 Mon Sep 17 00:00:00 2001 From: Saelmala Date: Fri, 17 Jan 2025 13:03:36 +0100 Subject: [PATCH] test: volume fixes --- src/components/calls-page/calls-page.tsx | 6 +----- src/components/production-line/production-line.tsx | 9 ++------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/calls-page/calls-page.tsx b/src/components/calls-page/calls-page.tsx index ce9e600e..a393f950 100644 --- a/src/components/calls-page/calls-page.tsx +++ b/src/components/calls-page/calls-page.tsx @@ -97,10 +97,6 @@ export const CallsPage = () => { } }, [calls, isProgramOutputAdded]); - useEffect(() => { - console.log("IS SOMEONE SPEAKING: ", isSomeoneSpeaking); - }, [isSomeoneSpeaking]); - const startTimeoutRef = useRef(null); useEffect(() => { @@ -129,7 +125,7 @@ export const CallsPage = () => { }, [isSomeoneSpeaking, shouldReduceVolume]); useEffect(() => { - console.log("IS AUDIO ACTIVE CALLS PAGE: ", shouldReduceVolume); + console.log("SHOULD REDUCE VOLUME CALLS PAGE: ", shouldReduceVolume); }, [shouldReduceVolume]); useEffect(() => { diff --git a/src/components/production-line/production-line.tsx b/src/components/production-line/production-line.tsx index 1cd05481..bdba9d9f 100644 --- a/src/components/production-line/production-line.tsx +++ b/src/components/production-line/production-line.tsx @@ -351,26 +351,21 @@ export const ProductionLine = ({ if (!line?.programOutputLine) return; if (shouldReduceVolume && !hasReduced) { - console.log("BASE VOLUME 1: ", value); setHasReduced(true); audioElements?.forEach((audioElement) => { // eslint-disable-next-line no-param-reassign audioElement.volume = value * volumeChangeFactor; - console.log( - "VOLUME REDUCTION (INSIDE AUDIOELEMENT): ", - audioElement.volume - ); + console.log("AUDIO FEED VOLUME REDUCED TO: ", audioElement.volume); }); } if (!shouldReduceVolume && hasReduced) { - console.log("BASE VOLUME 2: ", value); finalIncreaseTimeoutRef.current = setTimeout(() => { audioElements?.forEach((audioElement) => { // eslint-disable-next-line no-param-reassign audioElement.volume = value; - console.log("VOLUME INCREASE: ", audioElement.volume); + console.log("AUDIO FEED VOLUME INCREASED TO: ", audioElement.volume); }); setHasReduced(false); }, 3000);