From f257a86c5922fcdcad52f6a34ca35d9905c7b00d Mon Sep 17 00:00:00 2001 From: Aaron Nwabuoku Date: Fri, 16 Feb 2024 23:23:13 -0500 Subject: [PATCH] fix: audio distortion with bluetooth headphone --- src/lib/ChatWindow.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ChatWindow.vue b/src/lib/ChatWindow.vue index 25bee869..49bcdc5c 100644 --- a/src/lib/ChatWindow.vue +++ b/src/lib/ChatWindow.vue @@ -176,7 +176,7 @@ export default { showFiles: { type: [Boolean, String], default: true }, showAudio: { type: [Boolean, String], default: true }, audioBitRate: { type: Number, default: 128 }, - audioSampleRate: { type: Number, default: 44100 }, + audioSampleRate: { type: Number, default: new (window.AudioContext || window.webkitAudioContext)().sampleRate }, showEmojis: { type: [Boolean, String], default: true }, showReactionEmojis: { type: [Boolean, String], default: true }, showNewMessagesDivider: { type: [Boolean, String], default: true },