Playing multiple sounds

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poo22
    New Member
    • May 2007
    • 1

    Playing multiple sounds

    Please help, i've looked everywhere on the internet for the answer, but nothing works! here is my problem:

    I have a Pong game, and would like to have a background .wav file playing.
    I also have .wav files for the sound effects, so when i launch the game, it plays the background loop first, then when something happens it stops the background sound, then plays the effect sound. I want it to either not stop the background loop, or to stop it, play the effect, then continiue where it left off.

    i used
    My.Computer.Aud io.Play(My.Reso urces.BG_loop, AudioPlayMode.B ackground)

    and

    My.Computer.Aud io.Play(My.Reso urces.pongbeep_ score, AudioPlayMode.B ackground)

    to play my sounds.

    PS i would prefer if the the sound files were in the ressources, for that is how i did it there
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by poo22
    My.Computer.Aud io.Play(My.Reso urces.BG_loop, AudioPlayMode.B ackground)

    and

    My.Computer.Aud io.Play(My.Reso urces.pongbeep_ score, AudioPlayMode.B ackground)

    to play my sounds.

    PS i would prefer if the the sound files were in the ressources, for that is how i did it there
    Greetings and salutations, poo22!

    Sounds like you needa select case, If statement/ perhpas a timer added to choose at which point yopu need the sound to pick up where it left off.

    Hope this helps...In a bit!

    Dököll
    Last edited by Dököll; May 2 '07, 12:26 AM. Reason: Deleted text

    Comment

    Working...