944,158 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 1587
  • VB.NET RSS
Oct 18th, 2007
0

Audio file

Expand Post »
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?


VB.NET Syntax (Toggle Plain Text)
  1. Dim someFile As String = "F:\HearingTestSimulator\pwn_wav.wav"
  2.  
  3. If maskcount > 0 Then
  4. My.Computer.Audio.Play(someFile)
  5.  
  6. ElseIf maskcount = 0 Then
  7. My.Computer.Audio.Stop()
  8. End If
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mustoora is offline Offline
23 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Checkbox on database
Next Thread in VB.NET Forum Timeline: Generic List Grouping





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC