timer that stops a looping sound

Discussion in 'C#' started by xzenon, Oct 1, 2010.

  1. xzenon

    xzenon New Member

    Joined:
    Oct 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi
    im just wondering how to make a simple timer that stops a looping sound after 5 sec?
     
  2. Love.NET

    Love.NET New Member

    Joined:
    Nov 20, 2010
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://sites.google.com/site/esubstance
    If you know how to stop it normally, it'll be very simple to stop it after 5 seconds.
    Add a timer with Interval = 5000 (miliseconds). In timer_Tick method, write the codes to stop the sound loop. Set timer.Enable = true at the time you play the sound.
    Thanks !
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice