[VB2012] How do I loop this Audio?, I’m trying to

I’m trying to make a Hidden Object Game, The sound is the only thing left I haven’t finished, I couldn’t play a Background music if i used this code

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

So I used this Instead

Public Class Game Dim musicAlias As String = "myAudio" Dim musicPath As String = "C:UsersJob JohnDesktop2 Crazy Dave (Intro Theme).mp3 " Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load mciSendString("Open " & Chr(34) & musicPath & Chr(34) & " alias " & musicAlias, CStr(0), 0, 0) mciSendString("play " & musicAlias, CStr(0), 0, 0) End Sub 

How do I loop the audio? I have no idea how this works but I got this code from

http://forum.codecall.net/topic/51741-playing-sounds-in-vbnet/page-2

P.S I’m a Beginner

submitted by /u/Written_Works
[link] [comments]

Leave a Reply