Skip to content

Conversation

@chris-hld
Copy link
Contributor

Related to jackaudio/jack2#919

apf/jackclient.h Outdated
{
(void)code; // avoid "unused parameter" warning
throw jack_error("JACK shutdown! Reason: " + std::string(reason));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you keeping the old overloaded jack_shutdown_callback()?
Shouldn't this be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will be called. I implemented a function overload for no arguments which should be the one getting registered. However, to avoid confusion I renamed according to shutdown_info (with arguments) and shutdown (without arguments). The whole chain of events is quite convoluted but now seems to be jack_on_shutdown -> _jack_shutdown_callback -> (cast)->jack_shutdown_callback -> jack_shutdown_callback.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will be called.

Yes, that's exactly my point.
It's never called, we don't need it, we should remove it. Right?

There is no need to define a jack_info_shutdown_callback() if we don't intend to ever use it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping that the windows specific issue will be resolved soon, as it seems this is related to the Jack library.
But I understand it's unnecessary for now. Would you prefer to remove it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, if we don't use it, we should remove it.

If the Windows issue will be solved at some point, that would be great, then we can simply change it back.

@mgeier
Copy link
Member

mgeier commented Feb 28, 2023

FYI: I fixed the CI error in #17.

apf/jackclient.h Outdated
{
(void)code; // avoid "unused parameter" warning
throw jack_error("JACK shutdown! Reason: " + std::string(reason));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will be called.

Yes, that's exactly my point.
It's never called, we don't need it, we should remove it. Right?

There is no need to define a jack_info_shutdown_callback() if we don't intend to ever use it.

@mgeier
Copy link
Member

mgeier commented Apr 4, 2023

@chris-hld I would like to merge this, but what about my last two comments?

@mgeier mgeier merged commit c75b3f1 into AudioProcessingFramework:master Apr 12, 2023
@mgeier
Copy link
Member

mgeier commented Apr 12, 2023

Thanks @chris-hld!

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

Successfully merging this pull request may close these issues.

2 participants