I am using the Filgraph Manager to .mp3 files. I can easily execute .run, .stop.
However when I execute .pause, the pause works fine. When I try to resume, I get the resume overlaid with the start from the beginning. This website https://docs.microsoft.com/en-us/pre...75652(v=vs.85) , in the last paragraph says if you have paused it, the use .run to resume. I must be missing something.
This is the code I use to run a file
This is the code I use to pause and then resume
Any assistance would be appreciated
Thanks
However when I execute .pause, the pause works fine. When I try to resume, I get the resume overlaid with the start from the beginning. This website https://docs.microsoft.com/en-us/pre...75652(v=vs.85) , in the last paragraph says if you have paused it, the use .run to resume. I must be missing something.
This is the code I use to run a file
Code:
Set FilgraphManager = New QuartzTypeLib.FilgraphManager Set IMediaEventEx = FilgraphManager
IMediaEventEx.SetNotifyWindow cmdMediaEvents.hWnd, WM_MOUSEMOVE, 0
With FilgraphManager
'.RenderFile "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.mp3"
.RenderFile mstrSoundFile
.Run
End With
Code:
IMediaEventEx.SetNotifyWindow cmdMediaEvents.hWnd, WM_MOUSEMOVE, 0
If blnPaused = False Then
With FilgraphManager
'.RenderFile "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.mp3"
.RenderFile mstrSoundFile
.Pause
blnPaused = True
End With
Else
With FilgraphManager
'.RenderFile "https://dl.espressif.com/dl/audio/gs-16b-2c-44100hz.mp3"
.RenderFile mstrSoundFile
.Run
blnPaused = False
End With
End If
Thanks