mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Reduce browser deprecation warnings.
This commit is contained in:
parent
7fdaeb844b
commit
fa4f85d014
@ -20,10 +20,11 @@ var sound = true;
|
||||
var _samples = [];
|
||||
|
||||
var audioContext;
|
||||
var AudioContext = window.AudioContext || window.webkitAudioContext;
|
||||
var audioNode;
|
||||
|
||||
if (window.AudioContext) {
|
||||
audioContext = new window.AudioContext();
|
||||
if (AudioContext) {
|
||||
audioContext = new AudioContext();
|
||||
audioNode = audioContext.createScriptProcessor(4096, 1, 1);
|
||||
|
||||
audioNode.onaudioprocess = function(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user