User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 456,554 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,459 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 727 | Replies: 0
Reply
Join Date: Jul 2007
Posts: 23
Reputation: mustoora is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mustoora mustoora is offline Offline
Newbie Poster

Audio file

  #1  
Oct 18th, 2007
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 5:22 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC