# \[Bug\] Connection / Disconnection of bluetooth earphones hang Unity

**URL:** <https://qa.fmod.com/t/bug-connection-disconnection-of-bluetooth-earphones-hang-unity/19640>\
**Category:** Unity\
**Tags:** unity\
**Created:** [December 13, 2022, 2:51pm UTC](https://qa.fmod.com/t/bug-connection-disconnection-of-bluetooth-earphones-hang-unity/19640 "2022-12-13T14:51:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VOX-Neil](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@VOX-Neil](https://qa.fmod.com/u/VOX-Neil)\
**Post date:** [December 13, 2022, 2:51pm UTC](https://qa.fmod.com/t/bug-connection-disconnection-of-bluetooth-earphones-hang-unity/19640/1 "2022-12-13T14:51:55Z")

</div>

Hi,  
The connection of bluetooth earphones whilst playing in the Unity editor (PC) is not showing them up in the device list if I use setCallback and getDriverInfo on all drivers. If I disconnect the earphones, it will hang Unity from within the FMOD update.

Without the setCallback call, FMOD isn’t updating the device automatically however, restarting the Unity project with the earphones connected will work fine.

The earphones which sync up fine in Windows are the Sony WF series. I’m using Unity 2021.3.13f1.

Any help would be appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [December 14, 2022, 10:21pm UTC](https://qa.fmod.com/t/bug-connection-disconnection-of-bluetooth-earphones-hang-unity/19640/2 "2022-12-14T22:21:22Z")

</div>

Hi,

Unfortunately I’ve been unable to reproduce your issue; I cannot get Unity to hang on connection/disconnection, and the drivers retrieved with `System.getDriverInfo` reflect the connected devices.

You’ve said that you can’t get FMOD to update the device automatically without using `System.setCallback` - [FMOD should automatically update devices](https://www.fmod.com/docs/2.02/api/core-guide.html#audio-devices-automatic-detection-of-device-insertion-removal) by default _unless_ you’ve set a callback for `FMOD_SYSTEM_CALLBACK_DEVICELISTCHANGED`, in which case the default behavior is overridden - is it possible that you’ve set a `FMOD_SYSTEM_CALLBACK_DEVICELISTCHANGED` callback somewhere else in your project?

That aside, can I please get you to provide your FMOD Unity version, as well the code you’re using in your callback?

---

<div class="post-metadata">

**Author:** ![VOX-Neil](https://avatars.discourse-cdn.com/v4/letter/v/f475e1/32.png) [@VOX-Neil](https://qa.fmod.com/u/VOX-Neil)\
**Post date:** [January 3, 2023, 3:48pm UTC](https://qa.fmod.com/t/bug-connection-disconnection-of-bluetooth-earphones-hang-unity/19640/3 "2023-01-03T15:48:29Z")

</div>

Hi,  
Yes apologies - I’m also unable to get it to happen anymore - I even created an isolated Unity project to test with. Will reopen if it happens again with a good repro.
