In my program, when the user (typically a toddler) touches/clicks the screen, a random sound is chosen; within the sound a random variation is chosen. Then, this sound is played along with the appropriate animation (an image moving along a path).
Here's the relevant part of the code:
Code: Select all
set the filename of player "Player1" to gAudioFolder & "/aahuh11KMono.aiff"
put (the duration of player "Player1" / the timeScale of player "Player1") into tDuration
start player "Player1"
move image pImage to the points of graphic "LevelLine" in tDuration seconds
(When I trapped the "playStarted" message sent to the Player, I see that the player has started to play. But the "playStopped" message never gets sent.)
2. If I set a breakpoint at "start Player ..." and step through it, the sound plays and the animation works.
(Both "playStarted" and "playStopped" messages get sent)
3. If I comment out the animation, the sound plays.
4. If I isolate the above code and put in a new stack it works; it doesn't work in the context of my program (but there are no logic issues; stepping through works, as I have mentioned)
Could it be something other than the program? Like my 6-year old MacBookPro17"?
I use LC 6.7.6
Thank you for any help,
Sri