954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Need help with background music

I need help for background music i have the code but its not constant (continual)

Here's my code :

My.Computer.Audio.Play(My.Resources.NAME OF FILE, audioplaymode.background)


I need the constant (continual) code please..

Thanks in advance

xxxferraxxx
Newbie Poster
22 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

I was typing your line of code in and the answer flashed itself up. Instead of Background, use the BackgroundLoop instead.

For example:-

My.Computer.Audio.Play("C:\WINDOWS\Media\Windows XP Ding.wav", AudioPlayMode.BackgroundLoop)


I ran this and the sound repeated itself non-stop until I quit the program.

Rob.

get connected
Junior Poster in Training
55 posts since Jan 2011
Reputation Points: 10
Solved Threads: 2
 

I was typing your line of code in and the answer flashed itself up. Instead of Background, use the BackgroundLoop instead.

For example:-

My.Computer.Audio.Play("C:\WINDOWS\Media\Windows XP Ding.wav", AudioPlayMode.BackgroundLoop)

I ran this and the sound repeated itself non-stop until I quit the program.

Rob.

Thanks so much bro works fine

xxxferraxxx
Newbie Poster
22 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: