1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    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