-
-
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(client): Registered AudioOutputBuffer as qRegisterMetaType #6571
FIX(client): Registered AudioOutputBuffer as qRegisterMetaType #6571
Conversation
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.
If you look at other occurrences of qRegisterMetaType
https://github.com/search?q=repo%3Amumble-voip%2Fmumble%20qRegisterMetaType&type=code you can see that those mostly happen in the classes where the connections are being used. So I guess it would make sense to move your call of qRegisterMetaType
in the constructor of ``AudioOutput.cpp` or something
Also please make sure your commit message follows our commit guidelines, otherwise the CI will not pass. The ChatGPT comment for the single line code change is also probably not needed.
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.
I assume you have checked if this still fixes the issue, right? Because you added the line to the AudioOutputRegistrar
constructor instead of the AudioOutput
constructor 😄
If both works functionally, I am more leaning towards putting it in the AudioOutput
constructor.
The commit message you wrote in the description here on GitHub is fine, but you need to use it as your actual commit message. For that you will need to squash your commits and reword the message. See this for more information: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
In addition to that you did not remove the changes you made to |
7d3e88e
to
6027ac1
Compare
src/mumble/main.cpp
Outdated
@@ -6,6 +6,7 @@ | |||
#ifdef USE_OVERLAY | |||
# include "Overlay.h" | |||
#endif | |||
|
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.
Please also removr this changed line in your commit
@Krzmbrzl Would you put this in the constructor of |
I guess technically putting it into the On the other hand, this does no harm and having the call as close as possible to where it is needed makes semantic sense, I guess. In the end I don't have a real preference 🤔 |
6027ac1
to
0213df5
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.
Compiled and tested. Seems to fix the bug.
@jaggzh Thank you very much for fixing this! |
Checks
FIX(client): Registered the AudioOutputBuffer as qRegisterMetaType
Just a QT registration missing for the AudioOutputBuffer. Being only a single required registration I didn't make a separate function for it -- it's just in the constructor.
Fixes: #6569