Author Topic: Device notification  (Read 85 times)

Chris Oakley

  • Posts: 145
Device notification
« on: 26 May '21 - 10:42 »
Is it possible to know when a device has errored?

I know it's possible to catch devices being added and removed from the system, but if we have already initialised and setup a device, then it errors for some odd reason but then returns to life, how can we catch that so we can initialise it again?

We tried BassWasapiHandler.Notification but it doesn't seem to raise an event if we deliberately stop and start the device.

Ian @ un4seen

  • Administrator
  • Posts: 23743
Re: Device notification
« Reply #1 on: 26 May '21 - 15:19 »
I'm not familiar with the BassWasapiHandler class, so I'm not sure about that, but a BASS_SYNC_DEV_FAIL sync can be set on a BASS channel (via BASS_ChannelSetSync) to get notified when its device stops working.

Chris Oakley

  • Posts: 145
Re: Device notification
« Reply #2 on: 26 May '21 - 16:00 »
Brilliant will check this out.