Added AudioLogging

This commit is contained in:
PxlLoewe
2025-07-19 13:21:00 -07:00
parent c10d7ef91a
commit 68e26b18b2
2 changed files with 9 additions and 4 deletions

View File

@@ -23,10 +23,10 @@ export const handleTrackSubscribed = (
useAudioStore.getState().addSpeakingParticipant(participant); useAudioStore.getState().addSpeakingParticipant(participant);
}, 1000), }, 1000),
); );
setTimeout(() => {
element.play();
}, 1000);
} }
setTimeout(() => {
element.play();
}, 1000);
track.on("unmuted", () => { track.on("unmuted", () => {
useAudioStore.getState().addSpeakingParticipant(participant); useAudioStore.getState().addSpeakingParticipant(participant);

View File

@@ -171,7 +171,12 @@ export const useAudioStore = create<TalkState>((set, get) => ({
deviceId: get().settings.micDeviceId ?? undefined, deviceId: get().settings.micDeviceId ?? undefined,
}, },
}); });
console.log(
"Connected to room",
roomName,
get().settings.micDeviceId,
get().settings.micVolume,
);
// Funk-Effekt anwenden // Funk-Effekt anwenden
const radioStream = getRadioStream(inputStream, get().settings.micVolume); const radioStream = getRadioStream(inputStream, get().settings.micVolume);
if (!radioStream) throw new Error("Konnte Funkstream nicht erzeugen"); if (!radioStream) throw new Error("Konnte Funkstream nicht erzeugen");