By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,843 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

Playing multiple sounds

P: 1
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.Audio.Play(My.Resources.BG_loop, AudioPlayMode.Background)

and

My.Computer.Audio.Play(My.Resources.pongbeep_score , AudioPlayMode.Background)

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
May 1 '07 #1
Share this Question
Share on Google+
1 Reply


Dököll
Expert 100+
P: 2,364
My.Computer.Audio.Play(My.Resources.BG_loop, AudioPlayMode.Background)

and

My.Computer.Audio.Play(My.Resources.pongbeep_score , AudioPlayMode.Background)

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
May 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.