Repository navigation
Add set_client_properties method to cover all AudioClientProperties - #48
Conversation
|
Thanks for the PR! So this new method covers the functionality of that existing method and more. It would be helpful if the documentation mentioned how the two methods related. |
|
@HEnquist, correct. I can extend the docs for |
|
Yes it would make sense to deprecate the existing method. But I'm thinking that the new method could make it easy to use the defaults for the properties you don't want to change, by making it take Option on all the properties. That way I could use it to set only for example offload, by giving Some there, and None for category and stream options that I just want to leave at their defaults (without having to know what those defaults are). |
|
@HEnquist, I see your point. I believe making a wrapper around |
|
Thanks for these changes, looks perfect now. I'm merging this, and then I'll make a new release asap. |
The existing method
set_audio_stream_categoryonly covers theeCategorymember ofAudioClientProperties. The two other members,bIsOffloadandOptions, are equally useful for certain use-cases, specifically if you want to enable usage of offload pin or specify specific options such as raw pin (AUDCLNT_STREAMOPTIONS_RAW).This PR implements
set_client_propertieswhich gives access to all properties underAudioClientProperties.