|
-
Feb 6th, 2007, 11:48 PM
#1
Thread Starter
Junior Member
[RESOLVED] Play audio
Hello im some what new with vb Im wondering how to create a just a Play and stop button and when u click play it will connect to a site like shout cast url or a listen live radio url thanks.
If tried a sorce code example
"
Private Sub Form_Load()
psSoundFile = AppPath & "http://example.com/live.wav"
If Dir(psSoundFile) = "" Then
MsgBox "Sample .wav file not found; can't run", , "Error"
Else
MMControl1.DeviceType = "WAVEAUDIO"
MMControl1.FileName = psSoundFile
StopWav
End If
End Sub
"
and when i click play it says wav file not found etc.
Last edited by dcool96; Feb 8th, 2007 at 01:47 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|