]> Repos - portaudio/commit
hotplug wmme: Factor out new Query{Input, Output} DeviceInterfaceName() functions...
authorRoss Bencina <rossb@audiomulch.com>
Sun, 11 Sep 2016 10:52:02 +0000 (20:52 +1000)
committerRoss Bencina <rossb@audiomulch.com>
Sun, 11 Sep 2016 10:52:02 +0000 (20:52 +1000)
commitdef576309488eed4445c6c370ceadb012fc706af
tree1657ed525f8636bbdd5e9a87cc194a9bee19b8a4
parent9745b2a590e5cf11b41ebc5c54dc53c3313cf2b8
hotplug wmme: Factor out new Query{Input, Output} DeviceInterfaceName() functions to wrap DRV_QUERYDEVICEINTERFACE. Store the device interface name in PaWinMmeDeviceInfo::deviceInterfaceName, free the associated allocation in FreeDeviceInfos() (required adding deviceCount parameter). Rework WDM/KS-based numChannels query to use the stored deviceInterfaceName. Free name memory on error in InitializeInputDeviceInfo, InitializeOutputDeviceInfo. Implement device connectionId correlation by matching deviceInterfaceName using new functions: FindDeviceByConnectionId(), FindDeviceInfoByInterfaceName(), AssignDeviceConnectionId().
src/hostapi/wmme/pa_win_wmme.c