Detect song is over - wxpython

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Apostle
    New Member
    • Dec 2008
    • 28

    Detect song is over - wxpython

    How do I detect song is over? I have a function that run ONLY when song have finished playing. How do I do that?
  • Smygis
    New Member
    • Jun 2007
    • 126

    #2
    Originally posted by Apostle
    How do I detect song is over? I have a function that run ONLY when song have finished playing. How do I do that?
    Well first you need to figure out how your audio playing lib handles this. If there is any events risen or something you can use.

    Secondly i think you want to have a look at wx.CallAfter... I think.

    Comment

    • Apostle
      New Member
      • Dec 2008
      • 28

      #3
      Originally posted by Smygis
      Well first you need to figure out how your audio playing lib handles this. If there is any events risen or something you can use.

      Secondly i think you want to have a look at wx.CallAfter... I think.
      wx.CallAfter can't wait for song to finish, fires up as soon as play() is called. If Iam to use wxCallAfter i need another function to delay until song finishes

      Comment

      Working...