I am in the process of developing an HTML5 canvas interactive piece that uses Createjs and the Web Audio API. I've managed to get audio working in Chrome/Firefox/Safari despite the deprecation of webkitAudioContext by Chrome and FF but not Safari. However, filters for some reason are not working in Safari, but sound still plays. Filters DO work in Chrome/FF.
I have my filters set up 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;
I found [this](http://webaudioapi.com/samples/filter/) example of a lowpass which works in Safari, but I've no idea. I have a hunch this has to do with "createMediaElementSource". Any help would be appreciated!
Live project can be found [here](http://playground.eca.ed.ac.uk/~s1463054/darksound_interactive/index.html).
Dup of bug #135042.
*** This bug has been marked as a duplicate of bug 135042 ***
Please try this against a WebKit nightly build on Mac OS X Yosemite.
Reopening. The test case still does not work on Nightly.
That test case uses a .mp3, which (for whatever reason) does not have an initially enabled audio track. I'll upload a patch shortly.
@Jer Noble: what do you mean by an "initially enabled audio track"? I have not seen a single working example anywhere on the web of filters working successfully on a createMediaElementSource.
(In reply to comment #5)
> @Jer Noble: what do you mean by an "initially enabled audio track"?
I mean, when the AVAsset posts a notification that the asset's metadata is completely loaded, the single AVAssetTrack in the asset's tracks array is disabled.
> I have
> not seen a single working example anywhere on the web of filters working
> successfully on a createMediaElementSource.
I've got a few. I'm not saying there's not a bug here; just stating the nature of it.
*** Bug 143510 has been marked as a duplicate of this bug. ***
Created attachment 250354 [details]
Comment on attachment 250354 [details]
Clearing flags on attachment: 250354
Committed r182555: <http://trac.webkit.org/changeset/182555>
All reviewed patches have been landed. Closing bug.