Author Topic: How can I detect a Default device Change over OS  (Read 172 times)

Marcus Reinhart

  • Posts: 10
Hi,

I use C# and i need to detect when I change the sound device over the settings in Windows.
Is this possible?

Thanks for answering

Ian @ un4seen

  • Administrator
  • Posts: 20425
Re: How can I detect a Default device Change over OS
« Reply #1 on: 8 Aug '17 - 14:35 »
If you don't need to support Windows XP (or older), then you could use BASSWASAPI's BASS_WASAPI_SetNotify function to get notification of default device changes. Please see the BASS_WASAPI_SetNotify and WASAPINOTIFYPROC documentation for details.