Hi guys. I'm still checking a few APIs and I came across a little problem
with Web Audio. I can't make the delay node work. I created the source,
connected the source to the delay node and the not to the destination. I
also connected the source to the destination to here both sounds, but the
sound with the delay never gets to the speakers. I tries the same pattern
in two different application. In http://ykifle.github.com/audiograph/ it
doesn't work like in my script (once you set the delay to something
different than 0 you only get silence). And
at http://webaudioplayground.appspot.com, the delay works, but it can't be
set for more than 1 second.
Apparently there is a way to make it work, but I can't find the way. Here
is my play() function:
var sourceNode = context.createBufferSource();
sourceNode.buffer = mybuffer;
delayNode = context.createDelay();
delayNode.delayTime.value = 0.5;
I also tried to set several delays with the AudioParam methods, but didn't
work. As soon as I declare a value for the delay, I get silence.
Am I missing something?