Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fernandovalente

macrumors 6502
Original poster
Hi, I'm developing an app that has a button. When the user press this button, a sound is played. I would like to be able to play the sound twice in case of the user press the button again before the sound ends playing. Anyway to do that using a QTMovie?
 
It sounds like you just want to disable the button while the sound is playing and then re-enable it when the sound is done? That would prevent a double tap, although maybe I'm misunderstanding what you want.
 
In that case I suppose you could spawn a second movie in memory (no visual representation) and play it, although Core Audio would probably be more appropriate to something like this.
 
So store a reference and release it when it's done playing - read the docs for what notification gets sent at that time.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.