|
-
May 20th, 2001, 01:50 PM
#1
Sounds
A lot of sites say to use the mci control to play sound files, but i couldt find this (im using vb6 prof) so i am trying to use the api but my code doest appear to be working. This is my code:
Public Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpszCommand As String, ByVal _
lpszReturnString As String, ByVal cchReturnLength As Long, _
ByVal hwndCallback As Long) As Long
Sub Play_File(Path As String, Name As String)
Call mciSendString("Open " & Path & " alius " & Name, "", 0, 0)
Call mciSendString("Play " & Name, "", 0, 0)
End Sub
Sub Stop_File(Name As String)
Call mciSendString("Close " & Name, "", 0, 0)
End Sub
Anyone have any ideas as to the problem/if the mcicontrol goes by a different name in the components list?
Thanks
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
|