sound would play twice

I set
audio.play( bPress, { loop=0 } )
as audio feedback for button press to change scene.

I also do
audio.rewind()
at beginning of scene. Sound is loaded in main, play triggered by event.phase == “ended”.
I am using director 1.4.

When button is pressed, sound plays twice.

I have no explanation for that. Can anyone help with this? [import]uid: 109677 topic_id: 24847 reply_id: 324847[/import]

Could you post some code??? [import]uid: 24708 topic_id: 24847 reply_id: 100788[/import]

use a print statement above your .play to be sure it is not getting called twice. [import]uid: 21331 topic_id: 24847 reply_id: 100806[/import]

My guess is like the above, getting called twice.

On your button are you using “tap” or “touch”? If touch, make sure you are using if event.phase == “ended”, else it will fire once on press and once on release.

Peach :slight_smile: [import]uid: 52491 topic_id: 24847 reply_id: 100964[/import]