5 Years Ago
[D11] [Audio] headset removal/reinsertion now seems to be working (although there are some issues and a slight delay in detection) but it is working. It looks like the original sample code had some memory corruption as it was allocating a structure with new but freeing it with CoTaskMemFree. There is also seemingly a case where the headset would never be usable again... not sure if that was because of the memory corruption or if there is another issue... Need to do some more testing tomorrow.