hi,
 
i'm trying to use one BackgroundSound object node to play different sounds selected by the user.  turns out that setting the first MediaContainer using setSoundData() works but whenever i try calling setSoundData() on another MediaContainer, the sound from the first MediaContainer continues to be triggered.  i have the capabilities for ALLOW_SOUND_DATA_READ and WRITE set.  pseudo code for what i'm doing is
 
class test {
 
BackgroundSound bgSound = new BackgroundSound();
 
addNewSound( int soundIndex ) {
    // find mediacontainer
    MediaContainer newSound = findSound( soundIndex );
 
    bgSound.setSoundData(newSound);
    bgSound.enable( true );
}
}
 
again, addNewSound works for the first sound i set but subsequent ones don't work.  what else should i be doing?
 
thanks.
 
jack

Reply via email to