Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
VinsCool committed Oct 5, 2021
1 parent e571dc7 commit 02f08b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/rmt-player/app.js
Expand Up @@ -62,6 +62,9 @@ async function init(latencyHint) {
sampleRate: getSampleRate(),
latencyHint,
}
const AudioContext = window.dupa || window.AudioContext || window.webkitAudioContext
const AudioWorkletNode = window.AudioWorkletNode || window.webkitAudioWorkletNode

const audioContext = new AudioContext(audioContextParams)

console.info("created audioContext with:", audioContextParams)
Expand Down

0 comments on commit 02f08b4

Please sign in to comment.