diff --git a/apps/dispatch/app/_helpers/liveKitEventHandler.ts b/apps/dispatch/app/_helpers/liveKitEventHandler.ts index bfc4ead3..6799adee 100644 --- a/apps/dispatch/app/_helpers/liveKitEventHandler.ts +++ b/apps/dispatch/app/_helpers/liveKitEventHandler.ts @@ -23,10 +23,10 @@ export const handleTrackSubscribed = ( useAudioStore.getState().addSpeakingParticipant(participant); }, 1000), ); - setTimeout(() => { - element.play(); - }, 1000); } + setTimeout(() => { + element.play(); + }, 1000); track.on("unmuted", () => { useAudioStore.getState().addSpeakingParticipant(participant); diff --git a/apps/dispatch/app/_store/audioStore.ts b/apps/dispatch/app/_store/audioStore.ts index 72155f36..6a443210 100644 --- a/apps/dispatch/app/_store/audioStore.ts +++ b/apps/dispatch/app/_store/audioStore.ts @@ -171,7 +171,12 @@ export const useAudioStore = create((set, get) => ({ deviceId: get().settings.micDeviceId ?? undefined, }, }); - + console.log( + "Connected to room", + roomName, + get().settings.micDeviceId, + get().settings.micVolume, + ); // Funk-Effekt anwenden const radioStream = getRadioStream(inputStream, get().settings.micVolume); if (!radioStream) throw new Error("Konnte Funkstream nicht erzeugen");