mustoora 0 Newbie Poster

Hi

I have an audio file. Each time maskcount is above 0, the file will be played. But the problem is the duration of the file is only 5 sec. So it will stop playing after 5 sec. How do i make it play continuosly for as long as the maskcount > 0?

Dim someFile As String = "F:\HearingTestSimulator\pwn_wav.wav"

       If maskcount > 0 Then
            My.Computer.Audio.Play(someFile)

        ElseIf maskcount = 0 Then
            My.Computer.Audio.Stop()
        End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.