fixed potential audio glitch on mac

This commit is contained in:
LAX1DUDE 2022-01-12 17:07:18 -08:00
parent df01df9fed
commit 05c2392125
6 changed files with 15966 additions and 15963 deletions

File diff suppressed because it is too large Load Diff

View File

@ -186,7 +186,6 @@ public class EaglerAdapterImpl2 {
throw new RuntimeException("WebGL 2.0 is not supported in your browser ("+getString("window.navigator.userAgent")+")");
}
setContextVar(webgl);
audioctx = AudioContext.create();
//String agent = getString("window.navigator.userAgent").toLowerCase();
//if(agent.contains("windows")) isAnisotropicPatched = false;
@ -329,6 +328,8 @@ public class EaglerAdapterImpl2 {
}
}
audioctx = AudioContext.create();
mouseEvents.clear();
keyEvents.clear();
}

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long