You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were only keeping this code around to support older safari versions.
However the oldest safari version we currently support is 14.1, which is
the first release to support the modern AudioContext object.
There is some confusion only about Safari 14.1 was release as part of
iOS 14.5. As far as I can tell Safari 14.1 is the version we should be
caring about for AudioContext.
See https://webkit.org/blog/11648/new-webkit-features-in-safari-14-1/
Copy file name to clipboardExpand all lines: src/lib/libwebaudio.js
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ var LibraryWebAudio = {
45
45
$emAudioExpectContext: (handle,methodName)=>{
46
46
varobj=_emAudioExpectHandle(handle,methodName);
47
47
#if ASSERTIONS
48
-
assert(objinstanceof(window.AudioContext||window.webkitAudioContext),`${methodName}() called with ${handle} that is not an AudioContext, but of type ${typeofobj}`);
48
+
assert(objinstanceofwindow.AudioContext,`${methodName}() called with ${handle} that is not an AudioContext, but of type ${typeofobj}`);
assert(objinstanceofwindow.AudioNode||objinstanceof(window.AudioContext||window.webkitAudioContext),`${methodName}() called with a handle ${handle} that is not an AudioContext or AudioNode, but of type ${typeofobj}`);
64
+
assert(objinstanceofwindow.AudioNode||objinstanceofwindow.AudioContext,`${methodName}() called with a handle ${handle} that is not an AudioContext or AudioNode, but of type ${typeofobj}`);
0 commit comments