Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send custom graph event after audio stream change #607

Open
clsid2 opened this issue Jul 15, 2024 · 2 comments
Open

Send custom graph event after audio stream change #607

clsid2 opened this issue Jul 15, 2024 · 2 comments

Comments

@clsid2
Copy link
Contributor

clsid2 commented Jul 15, 2024

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.

@Nevcairiel
Copy link
Owner

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

@clsid2
Copy link
Contributor Author

clsid2 commented Jul 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants