Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15713

[RESOLVED] FilgraphManager

$
0
0
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
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

This is the code I use to pause and then resume
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

Any assistance would be appreciated

Thanks

Viewing all articles
Browse latest Browse all 15713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>