Topic: onSoundComplete on Chumby?
Does the onSoundComplete handler work on the Chumby? It works in a browser and in a virtual Chumby, but it's not working on my real Chumby. Here's a chunk of my code:
function saySound(){
snd = new Sound(this);
snd.attachSound(sndArr[i]);
snd.onSoundComplete = nextSound;
snd.start();
}
function nextSound(){
i++;
if(i < 4){ //the array is always 4 sounds.
saySound();
}
else{
i = 0;
}
}
Basically, I have an array of sound objects, and I want to play them one at a time. The function that builds the array of sounds also calls the saySound function. On the Chumby, I only hear the first sound in the array, possibly because the nextSound callback is not getting called.
Here's the widget if you'd like to try it: http://www.chumby.com/guide/widget/Rect … ng%20Clock
Thanks!