Skip to content

Commit f257a86

Browse files
committed
fix: audio distortion with bluetooth headphone
1 parent 372ae35 commit f257a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ChatWindow.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default {
176176
showFiles: { type: [Boolean, String], default: true },
177177
showAudio: { type: [Boolean, String], default: true },
178178
audioBitRate: { type: Number, default: 128 },
179-
audioSampleRate: { type: Number, default: 44100 },
179+
audioSampleRate: { type: Number, default: new (window.AudioContext || window.webkitAudioContext)().sampleRate },
180180
showEmojis: { type: [Boolean, String], default: true },
181181
showReactionEmojis: { type: [Boolean, String], default: true },
182182
showNewMessagesDivider: { type: [Boolean, String], default: true },

0 commit comments

Comments
 (0)