From 77a7397f1c567049c02c32f4f7f0032fe72dc48d Mon Sep 17 00:00:00 2001 From: Davide Passoni Date: Mon, 20 Jan 2025 17:15:49 +0100 Subject: [PATCH] fix: added missing setting of volume to node --- frontend/react/src/audio/radiosink.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/react/src/audio/radiosink.ts b/frontend/react/src/audio/radiosink.ts index 8cfabef1..0dcbe675 100644 --- a/frontend/react/src/audio/radiosink.ts +++ b/frontend/react/src/audio/radiosink.ts @@ -16,7 +16,7 @@ export class RadioSink extends AudioSink { #modulation = 0; #ptt = false; #tuned = true; - #volume = 0.5; + #volume = 1; #receiving = false; #clearReceivingTimeout: number; #packetID = 0; @@ -107,6 +107,7 @@ export class RadioSink extends AudioSink { setVolume(volume) { this.#volume = volume; + this.getInputNode().gain.value = volume; AudioSinksChangedEvent.dispatch(getApp().getAudioManager().getSinks()); }