 |

06-11-2004, 07:58 PM
|
|
Centurion
|
|
Join Date: Apr 2004
Posts: 104
|
|
Pausing and Stopping a .wav file in VB6
|
I know you can pause and stop an .mp3 in VB6, but how would you do that with a .wav?
Thanks for the help in future.
|
|

06-11-2004, 08:27 PM
|
 |
Senior Contributor
|
|
Join Date: May 2003
Location: Vancouver, WA
Posts: 1,268
|
|
|
What are you using? MCI? If yes, then do same as .mp3, no difference (if you are using MCI you wouldn't ask, so you probably are not using it).
|
|

06-11-2004, 08:48 PM
|
|
Centurion
|
|
Join Date: Apr 2004
Posts: 104
|
|
|
Would it be something like:
mciSendString "Close WAV", 0, 0, 0
mciSendString "Open " & FileName & " Alias WAV", 0, 0, 0
mciSendString "Play WAV", 0, 0, 0
?
|
|

06-11-2004, 09:24 PM
|
 |
Senior Contributor
* Expert *
|
|
Join Date: May 2002
Location: Vancouver, USA
Posts: 999
|
|
|
More like...
mciSendString "Pause WAV", 0, 0, 0
|
__________________
1011 0000 1011
|

06-11-2004, 10:14 PM
|
|
Centurion
|
|
Join Date: Apr 2004
Posts: 104
|
|
|
The program plays .mp3's and .wav's, and I can pause, resume, and stop the .mp3's, but not the .wav's.
Here is my code for the pausing part:
Private Sub cmdPause_Click()
If Paused = True Then
mciSendString "Play Mp3", 0, 0, 0
mciSendString "Play WAV", 0, 0, 0
Paused = False
cmdPause.Caption = "Pause"
Else
mciSendString "Pause Mp3", 0, 0, 0
mciSendString "Pause WAV", 0, 0, 0
Paused = True
cmdPause.Caption = "Play"
End If
End Sub
|
|

06-11-2004, 10:31 PM
|
|
Centurion
|
|
Join Date: Apr 2004
Posts: 104
|
|
|
Nevermind. Some problem due to me using
ret& = waveOutGetNumDevs
If ret& > 0 Then
sndPlaySound cdFF.FileName, SND_ASYNC Or SND_NODEFAULT
End If
In it.
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|