Author Topic: Prevent Bass from stopping/crashing when output is diconnected?  (Read 95 times)

smooodilo

  • Guest
When I disconnect the output cable on Windows, Bass stops, and can only be restarted by restarting the app.  Is this normal behaviour? And how can I prevent this?

Ian @ un4seen

  • Administrator
  • Posts: 26079
When you say "output cable", do you mean a USB cable? Unplugging an audio cable shouldn't stop a device working. It should be possible to continue using a disconnected device once it's reconnected, possibly by just calling BASS_Start, but if that doesn't work then calling BASS_Init again with the BASS_DEVICE_REINIT flag. Is even BASS_Init not working in your case? If so, please check the device list (with BASS_GetDeviceInfo) to see if the reconnected device has reappeared as a new entry.