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

Revamp PortAudio implementation #3889

Merged
merged 3 commits into from Nov 15, 2019

Conversation

davidebeatrici
Copy link
Member

@davidebeatrici davidebeatrici commented Nov 11, 2019

While working on the code to load the library at runtime, I corrected the many warnings emitted by Clang-Tidy and I realized that there were many things that could be improved.

This commit almost entirely rewrites the implementation, but here are some of the changes:

  • Symbols are loaded at runtime, the library is not a dependency anymore. Load libraries dynamically in audio backends #3794
  • A callback is used to read/write from/to the stream.
  • PortAudioSystem is not a static class anymore, the object is managed by PortAudioInit.
  • All instances of delete have been removed, raw pointers have been replaced with std::unique_ptr<>().
  • All instances of NULL have been replaced with nullptr.

@davidebeatrici davidebeatrici added client build Everything related to compiling/building the code audio labels Nov 11, 2019
While working on the code to load the library at runtime, I corrected the many warnings emitted by Clang-Tidy and I realized that there were many things that could be improved.

This commit almost entirely rewrites the implementation, but here are some of the changes:

- Symbols are loaded at runtime, the library is not a dependency anymore.
- A callback is used to read/write from/to the stream.
- "PortAudioSystem" is not a static class anymore, the object is managed by "PortAudioInit".
- All instances of "delete" have been removed, raw pointers have been replaced with "std::unique_ptr<>()".
- All instances of "NULL" have been replaced with "nullptr".
…src" as include path

This guarantees no dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio build Everything related to compiling/building the code client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant