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.
On AsioOut.InitRecordAndPlayback i've added a new optional parameter to set the buffer size on the current asio driver instance: if it's not specified (value = -1) it will use the preferred buffer size, else it will check if the value is between min and max size supported and also if it respect granularity; if the value is not coherent with the driver granularity it will search the closest good value and use it.
I've added a public method on AsioOut to get the current buffer size and also added a public property to expose the preferred buffer size (i've founde them to be useful).
I've tried this with different drivers and hardware and it seems to work well.
I've used:
All of this different setups has been tested on 2 different windows computers with windows 10.
Unfortunately i don't have access to any other audio cards or computers at the moment.