LAVFilters icon indicating copy to clipboard operation
LAVFilters copied to clipboard

Send custom graph event after audio stream change

Open clsid2 opened this issue 1 year ago • 2 comments

MPC-HC has an option to show some details of the current audio stream in its statusbar. However, this info is not updated when the stream is changed through LAV Splitter. And of course I would like to avoid having to frequently check the graph for changes.

Could you send a custom graph event when audio stream is changed? https://learn.microsoft.com/en-us/windows/win32/directshow/cbasefilter-notifyevent madvr uses 0xfa17 as a custom eventcode, so I suggest using a value in a similar range.

clsid2 avatar Jul 15 '24 14:07 clsid2

Changing an audio stream by the user stops and restarts the graph, that seems like quite a noticeable event to watch for.

Nevcairiel avatar Jul 15 '24 14:07 Nevcairiel

That only fires the generic EC_PAUSED event, which is quite common, e.g. fires after each frame step or pause.

I could use that. But would be less efficient.

clsid2 avatar Jul 15 '24 14:07 clsid2