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!

Re: onSoundComplete on Chumby?

what kind of sound objects are you talking about?

external soundfiles?

Re: onSoundComplete on Chumby?

No, all the sounds are embeded in the swf.  The array holds the linkage name (string) of the sounds, and then the saySound function attaches them one at a time to the snd variable.

Thanks.

Re: onSoundComplete on Chumby?

You did notice in the other thread Duane pointed out that the chumby does NOT support the encoding you are using for the sound files?

I recorded male numbers etc... but I thought your's sounds pretty fine.