I am currently working on an HTML5 canvas interactive project that utilizes Createjs and the Web Audio API. Despite the deprecation of webkitAudioContext in Chrome and Firefox, I have successfully implemented audio in those browsers. However, I am facing an issue with filters not working in Safari, even though the sound still plays. Filters work fine in Chrome and Firefox.
My filter setup looks like this:
var sound = new Audio();
sound.src = './sounds/sound.mp3';
sound.autoplay = false;
sound.loop = true;
soundSource = context.createMediaElementSource(sound);
var soundFilter = context.createBiquadFilter();
soundFilter.type = "lowpass";
soundFilter.frequency.value = 500;
soundSource.connect(soundFilter);
soundFilter.connect(context.destination);
Could it be that I'm using a deprecated term unknowingly? You can check out the live project here. Thank you.
UPDATE: The WebKit team has acknowledged this issue as a legitimate bug and is working on fixing it. For more details, click here.