javascript - Web Audio API filter not working in Safari -


i in process of developing html5 canvas interactive piece uses createjs , web audio api. i've managed audio working in chrome/firefox/safari despite deprecation of webkitaudiocontext chrome , ff not safari. however, filters reason not working in safari, sound still plays. filters work in chrome/ff.

i have filters set 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); 

am unknowingly using deprecated term or something? live project can found here. cheers.

update: has been recognised genuine bug webkit team, , patched. full details here

apparently safari doesn't implement createmediaelementsource correctly. instead of redirecting sound through web audio nodes, still plays sound directly audio device.

is there particular reason why can't use buffersourcenode? makes jump through hoops sound file , decode it, should work.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -