|
-
May 3rd, 2011, 07:41 AM
#6
Re: [VB6] - mcisendstring() api function delay problem
Your FileOpen method is calling 4 functions:
ValidFile(FileName) = False Then Exit Sub
strShorFileName = GetShortFileName(strFileName)
nReturn = mciSendString("Open " & strShorFileName & " wait", "", 0, 0)
nReturn = mciSendString("setaudio " & strFileName & " volume to " & (lngVolume * 10), "", 0, 0)
Also, your SoundPlay method has bunch of activities going on there as well...
It doesn't look like it should delay you but try excuting mciSendString or PlaySound directly to make sure either function works without delays.
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
|