After migrating from NAudio.CoreAudioApi to AudioSwitcher.AudioApi, I found another regression in my application. I can no longer view properties for devices that are not connected to the system, due to these 3 lines:
|
//Don't try to load properties for a device that doesn't exist |
|
if (State == DeviceState.NotPresent) |
|
return; |
Removing these lines immediately allow the library to behave as desired for my project. I doubt you'd accept that as a PR though. It should be some kind of setting that's stored in the CoreAudioController when it's created. I don't see a pattern in the library for how you would implement something like that. An optional parameter in the CoreAudioController constructor? Containing just that flag? Or wrapped in a new CoreAudioControllerSettings struct? Let me know what you think, and I'll work on the implementation.
Thanks
After migrating from NAudio.CoreAudioApi to AudioSwitcher.AudioApi, I found another regression in my application. I can no longer view properties for devices that are not connected to the system, due to these 3 lines:
AudioSwitcher/AudioSwitcher.AudioApi.CoreAudio/CoreAudioDevice.Internal.cs
Lines 94 to 96 in 27d4bf5
Removing these lines immediately allow the library to behave as desired for my project. I doubt you'd accept that as a PR though. It should be some kind of setting that's stored in the CoreAudioController when it's created. I don't see a pattern in the library for how you would implement something like that. An optional parameter in the CoreAudioController constructor? Containing just that flag? Or wrapped in a new CoreAudioControllerSettings struct? Let me know what you think, and I'll work on the implementation.
Thanks