-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add argument parameter for AESND callbacks #129
Conversation
Did you check if this breaks existing homebrew projects? |
It's a hard call tbh. I can see the utility of your change but of course this means that the ABI gets broken & old projects that use this interface need updated accordingly. What I'd suggest is perhaps updating AESND_RegisterVoiceCallback to set the arg to NULL & adding a new function which takes the argument (i.e. AESND_RegisterVoiceCallbackWithArg) instead. |
i was looking at this yesterday before going to bed and i was thinking the same. this would make it not break for existing projects. C equivalent of a function overload (aka a new function with a different name in C haha) |
Done |
5a62c09
to
5d5fb4e
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.
These changes will mean code using the old API will emit a single call to the new API instead of a double call.
I moved the 3 non-WithArg functions to |
Not to sound impatient, but is there anything else I should change for my PR? GitHub still says "changes requested," but I think I have made all of the requested changes. |
sorry for the waiting. ive been a bit busy. ill leave this page open on my pc and take a look at this tonight :) |
there, merged. thanks for the PR @HTV04 |
No problem, thanks for merging it! |
Adds an argument parameter for AESND's audio and voice callbacks. This allows these static functions to have a pointer to data passed over when called, for example, a pointer to a C++ class instance.