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

cmake: patch asiolist.cpp as issue #331 explains #997

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

sonoro1234
Copy link
Contributor

If download of ASIO api is complete, this performs the modification of "delete lpdrv" to "delete[] lpdrv".
Even in the case it was already done that would be harmless.

@RossBencina
Copy link
Collaborator

Thanks for this. This is a good thing to fix. It would be better to not modify the user's files in place.

As a suggestion, perhaps we could create the patched version of asiolist.cpp as a separate temporary file, somewhere within the build space, as we already do for the generated .def file. The generated/patched file could be named patched_asioroot_host_pc_asiolist.cpp and this file could be used by the build step instead of asiolist.cpp from the sdk.

@sonoro1234
Copy link
Contributor Author

Done

Copy link
Collaborator

@RossBencina RossBencina left a comment

Choose a reason for hiding this comment

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

Due to severity of the issue and the effectiveness of the fix, we're going to merge this as-is. However it could be improved further, as noted by new issue #1004

@RossBencina RossBencina merged commit e4fdd66 into PortAudio:master Feb 6, 2025
11 checks passed
@sonoro1234 sonoro1234 deleted the asiolistcmakepatch branch February 7, 2025 02:08
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.

3 participants