Skip to content

Commit

Permalink
fix safari mic data
Browse files Browse the repository at this point in the history
  • Loading branch information
michealparks committed Jan 11, 2025
1 parent 8c95202 commit 7cdde28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/analyser.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ const fttSize = 1024

const createAnalyser = async () => {
// 1. Get access to the user's microphone
const stream = await navigator.mediaDevices.getUserMedia({ audio: true })
const stream = await navigator.mediaDevices.getUserMedia({
audio: {
backgroundBlur: false,
echoCancellation: false,
},
})

// 2. Create a Web Audio context
const audioContext = new AudioContext()
Expand Down

0 comments on commit 7cdde28

Please sign in to comment.