mobileplaysoundonchannel - sequential sounds
Posted: Sat Jun 02, 2012 6:32 pm
As always, new to the mobile sound concept.... I have been using the typical..
play "sound1.aif"
wait until the sound is done
play "sound2.aif"
but I need to be able to play sequential sounds without the wait command, as the wait pauses the script and everything in the app stops waiting for the sound to play. But I noted that mobileplaysoundonchannel can queue up with the "next", but somehow, all the sounds seems to play together at once as noted in the bottom script for 3 sounds to play sequentially when the prior sound is done.
mobilePlaySoundOnChannel specialFolderPath("engine") & "/data/words/"&"sound1.aif","tsounds","next"
mobilePlaySoundOnChannel specialFolderPath("engine") & "/data/words/"&"sound2.aif","tsounds","next"
mobilePlaySoundOnChannel specialFolderPath("engine") & "/data/words/"&"sound3.aif","tsounds","next"
For example if a child click on a series of pictorial words, the playback button will play back the string of words into a sentence without pauses or waits, but sequentially.
Any ideas will be helpful. this mobile sound channel is new to me
play "sound1.aif"
wait until the sound is done
play "sound2.aif"
but I need to be able to play sequential sounds without the wait command, as the wait pauses the script and everything in the app stops waiting for the sound to play. But I noted that mobileplaysoundonchannel can queue up with the "next", but somehow, all the sounds seems to play together at once as noted in the bottom script for 3 sounds to play sequentially when the prior sound is done.
mobilePlaySoundOnChannel specialFolderPath("engine") & "/data/words/"&"sound1.aif","tsounds","next"
mobilePlaySoundOnChannel specialFolderPath("engine") & "/data/words/"&"sound2.aif","tsounds","next"
mobilePlaySoundOnChannel specialFolderPath("engine") & "/data/words/"&"sound3.aif","tsounds","next"
For example if a child click on a series of pictorial words, the playback button will play back the string of words into a sentence without pauses or waits, but sequentially.
Any ideas will be helpful. this mobile sound channel is new to me