# Unity editor spams "Device was unplugged!" all the time my bluetooth headset got lost

**URL:** <https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736>\
**Category:** Unity\
**Tags:** unity\
**Created:** [February 10, 2021, 3:39pm UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736 "2021-02-10T15:39:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuriKashirin](https://avatars.discourse-cdn.com/v4/letter/y/d07c76/32.png) [@YuriKashirin](https://qa.fmod.com/u/YuriKashirin)\
**Post date:** [February 10, 2021, 3:39pm UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/1 "2021-02-10T15:39:59Z")

</div>

[FMOD] Output WASAPI::mixer read : GetCurrent Padding returned 0x88890004. Device was unplugged!

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [February 16, 2021, 3:28am UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/2 "2021-02-16T03:28:31Z")

</div>

It is recommended that you utilize the device list changing callback to handle situations like this. It isn’t done automatically on the FMOD side. Take a look into our documentation for more information on how to handle this.

[https://www.fmod.com/resources/documentation-api?version=2.1&page=core-guide.html#audio-devices-automatic-detection-of-device-insertion-removal](https://www.fmod.com/resources/documentation-api?version=2.1&page=core-guide.html#audio-devices-automatic-detection-of-device-insertion-removal)

---

<div class="post-metadata">

**Author:** ![victor](https://avatars.discourse-cdn.com/v4/letter/v/3e96dc/32.png) [@victor](https://qa.fmod.com/u/victor)\
**Post date:** [July 12, 2021, 6:14pm UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/3 "2021-07-12T18:14:49Z")

</div>

@richard_simms, is the behavior that you described going to happen exactly when there are zero audio devices present? I can imagine that being a special case, but otherwise I’d hope to see the behavior that is described in the documentation that you linked to:

“If the device that is being played on is removed (such as a USB audio device), it will automatically jump to the device considered next most important (ie on Windows, it would be the new ‘default’ device).”

Confused,  
Victor

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [July 18, 2021, 11:25pm UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/4 "2021-07-18T23:25:18Z")

</div>

Yes, it should. As long as your output type can detect devices, if a change is detected in the list of available devices, regardless of if this list is 0 or more, then it should automatically switch.

[https://fmod.com/resources/documentation-api?version=2.02&page=core-api-system.html#system\_setoutput](https://fmod.com/resources/documentation-api?version=2.02&page=core-api-system.html#system_setoutput)

---

<div class="post-metadata">

**Author:** ![dominik.weltenbauer](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dominik.weltenbauer](https://qa.fmod.com/u/dominik.weltenbauer)\
**Post date:** [September 19, 2022, 10:12am UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/5 "2022-09-19T10:12:00Z")

</div>

Hi,  
I’m seeing these as well. Sometimes if I unplug my headphones and regularly on our integrated testing machine. While I feel the automatic device handling works well, the messages spam the log file and make it hard to find other things.  
Is there a way to make them stop like handling something in the FMOD\_SYSTEM\_CALLBACK\_DEVICELISTCHANGED to essentially tell fmod: “I gotcha, now stop logging” or can this particular log be muted in a way?

Cheers  
Dominik

I’m using FMOD 2.01.11

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [September 20, 2022, 3:30am UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/6 "2022-09-20T03:30:07Z")

</div>

Hi,

Something you can check is what level FMOD Logging is set to. That is found under the `FMOD (on Unity Toolbar) -> Edit Settings -> Initialization drop-down -> Logging Level`. Setting the drop-down option to `Warning` will restrict FMOD to logging only Warnings to the console.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/db743174c5ce85064f23f1cffe0612c01fb4f555.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![dominik.weltenbauer](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dominik.weltenbauer](https://qa.fmod.com/u/dominik.weltenbauer)\
**Post date:** [September 23, 2022, 8:45am UTC](https://qa.fmod.com/t/unity-editor-spams-device-was-unplugged-all-the-time-my-bluetooth-headset-got-lost/16736/7 "2022-09-23T08:45:32Z")

</div>

thank you.  
i will try that 🙂
