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

Audio streams continue playing after the game window loses focus (possible solution provided) #23

Closed
dkluin opened this issue Jun 5, 2020 · 1 comment · Fixed by #25
Labels

Comments

@dkluin
Copy link

dkluin commented Jun 5, 2020

This is a bug which exists for quite a long time now. It happens because the WM_ACTIVATE event in the DefWindowProc() hook is not handled properly. WM_ACTIVATE fires whenever a window gains or loses focus, and thus one would need to check the WPARAMS argument and call PauseStreams() and ResumeStreams() accordingly.

Source:

case WM_ACTIVATE:

@x87 x87 added the bug label Jun 5, 2020
@JuniorDjjr
Copy link
Contributor

Fixed #25

@x87 x87 linked a pull request Oct 18, 2020 that will close this issue
@x87 x87 closed this as completed Oct 18, 2020
MiranDMC added a commit to MiranDMC/CLEO4 that referenced this issue Nov 13, 2023
* Compilation warnings fixes

* fixed global debug mode state not initialized in spawned scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants