Jump to content

Sound onStop vs onPause vs onComplete


maf
 Share

Recommended Posts

a question on implementation really:

 

i was looking for a sound.onComplete signal - play a sound, do this when it's finished - sound.onStop seems to be the closest thing, but this also dispatches when a sound is paused, just before the onPause signal dispatches. Is this intentional?

 

I may be missing something obvious, but for me it would make sense to dispatch EITHER onStop OR onPause, or alternatively have a separate onComplete signal.

 

I've achieved the former by setting the paused property to true before calling stop() from the pause() method, and then only dispatching onStop if the sound is not paused.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...