I am using unity in windows application that uses camera and microphone.
How to detect if the default device changes? For example if I plug an external microphone it will be the default microphone in windows, in this case I want to call a function when a change is made.