Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another attempt to kick off: #26
Thick binding to the methods required to output audio using either callbacks or queues. The reason I went for a thick binding is to hide the low level buffer passing/size calculations that is done with the C arrays so we can offer something more Ada-like through unconstrained arrays.
This implements:
This purposely skips the legacy
OpenAudio
(no Device) methods, as implementing the binding in a similar fashion would just result in duplicate signatures.Also made a few tweaks so things compile out of the box on a recent MacOS version (Catalina) with SDL installed from Homebrew as well as renaming the os to account for future MacOS releases (no longer OSX). Also makes building the tests from GPR/GPS possible by adding the Linker flags in the project file.
Possible Concerns
Dirty commit history. Can either squash this or separate the build config changes from audio additions into different PRDevice
abstraction might be thicker than needed, but I think that it works well and the overhead is minimal. Makes for a clean interface that can be easily changed under the hood without breaking the clients.