-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
FIX(positional-audio): Fix Source Engine plugin not working on Windows #6245
FIX(positional-audio): Fix Source Engine plugin not working on Windows #6245
Conversation
8482bbd
to
555de98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lol - that's an easy fix ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason in particular why you chose to zero initialize the bool in the windows case instead of constexpr bool isWin32 = false
? Just curious
Right.... An explicit initialization to |
The lack of
You mean in the Linux case? I didn't do that to emphasize that we rely on the value that is set later, through |
ah that makes total sense |
Not sure this really emphasizes something. Generally, uninitialized variables are only a source of bugs - now or in the future. I think for |
Consider that global variables are always initialized to zero though. |
Yeah, but the initialization rules in C++ are finicky and thus I think it's better to always be explicit. |
The bug was introduced in 13cbf72. It was only reported last year and because of a side effect: consistent lag for the entire application. That's something that should be dealt with independently.
555de98
to
c912a41
Compare
Done. |
Feel free to merge |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
…Source Engine plugin not working on Windows" to 1.5.x
The bug was introduced in #4536.
It was only reported last year and because of a side effect: consistent lag for the entire application.
That's something that should be dealt with independently.