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

**URL:** https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230
**Category:** FMOD Studio
**Created:** [November 19, 2019, 4:06am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230 "2019-11-19T04:06:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![dadi-victorious](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dadi-victorious](https://qa.fmod.com/u/dadi-victorious)
#### Post date: [November 19, 2019, 4:06am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/1 "2019-11-19T04:06:42Z")

</div>

I got this on my development built  
[FMOD] Output WASAPI::mixer read : GetCurrent Padding returned 0x88890004. Device was unplugged!

this happened when I unplugged USB cable connector of my audio interface.  
actually sound keep working by using internal soundcard. but there was an error notification.  
How to fix this issue…?  
Thanks…

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [November 24, 2019, 11:59pm UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/2 "2019-11-24T23:59:10Z")

</div>

What is the issue you want to fix? You are saying that you unplugged a device and you get a message about a device being unplugged.

---

<div class="post-metadata">

### Author: ![zanardi](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/zanardi/32/1045_2.png) [@zanardi](https://qa.fmod.com/u/zanardi)
#### Post date: [March 27, 2020, 1:59am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/3 "2020-03-27T01:59:39Z")

</div>

May I ask just to double-check it? Is it an error, or just a warning/output? Because it’s show red, it looks like an error.  
[edit]  
Sorry, I mean, is it a problem that I should handle in any way? If yes, how? There’s docs or anything on that?

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [April 1, 2020, 4:47am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/4 "2020-04-01T04:47:00Z")

</div>

What version of FMOD are you using and what operating system is this occurring on?

---

<div class="post-metadata">

### Author: ![zanardi](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/zanardi/32/1045_2.png) [@zanardi](https://qa.fmod.com/u/zanardi)
#### Post date: [April 1, 2020, 7:24pm UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/5 "2020-04-01T19:24:46Z")

</div>

Hi there!  
FMOD 1.10.09, game running on a Windows 10 machine.

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [April 2, 2020, 2:52am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/6 "2020-04-02T02:52:51Z")

</div>

This message isn’t anything to worry about, you can ignore it.

---

<div class="post-metadata">

### Author: ![carrotstien](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@carrotstien](https://qa.fmod.com/u/carrotstien)
#### Post date: [March 14, 2021, 7:31pm UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/7 "2021-03-14T19:31:18Z")

</div>

i’m getting this regularly in my Unity editor. Once it starts happening, I can’t stop it, and if i try to close unity, it often hangs. Why doesn’t FMOD just recognize that a device has been unplugged, and stop poking it?

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [March 18, 2021, 4:38am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/8 "2021-03-18T04:38:06Z")

</div>

What version of FMOD are you using?

---

<div class="post-metadata">

### Author: ![carrotstien](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@carrotstien](https://qa.fmod.com/u/carrotstien)
#### Post date: [March 18, 2021, 5:15am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/9 "2021-03-18T05:15:26Z")

</div>

2.00.08

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [March 24, 2021, 4:32am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/10 "2021-03-24T04:32:12Z")

</div>

FMOD’s output should change output when the OS device list changes, are you able to provide the output log from when this occurs?

---

<div class="post-metadata">

### Author: ![carrotstien](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@carrotstien](https://qa.fmod.com/u/carrotstien)
#### Post date: [September 4, 2021, 3:23am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/11 "2021-09-04T03:23:25Z")

</div>

i think i can replicate it, haven’t checked, but i think just having unity run the project…then stop…then sleep the computer…then wake up the computer, and i get a bunch of those errors.

The real question is…is there anyway to not have the mixerThread running…or a button to restart/shut it down in editor mode. The problem is even trying to close the editor normally, it hangs because something in the fmod dll is not letting go. So i end up having to kill the process.

I don’t have any OS device change logs.

Here are FMOD related logs at and before this non stop error:

> **[....(Filename: Assets/Plugins/ZLogger/ZLogger/Unity/ZLoggerUnityLoggerPr -...](https://pastebin.com/r6CT3fYG)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [September 8, 2021, 5:31am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/12 "2021-09-08T05:31:26Z")

</div>

I wasn’t able to reproduce this issue as you have described- are you still using FMOD 2.00.08?  
Usually this error is supposed to appear just once when a device is unplugged and then continue execution with the next available device, and if there are no more devices it should resort to no sound mode. Instead it sounds like you’ve somehow hit some inifinite recursion if it’s locking you out of the Editor.  
Can you please set your Logging Level to “LOG” in the FMOD Unity Integration settings and send through the output when the issue occurs?

---

<div class="post-metadata">

### Author: ![thatgamecompany](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thatgamecompany](https://qa.fmod.com/u/thatgamecompany)
#### Post date: [May 31, 2023, 1:50am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/13 "2023-05-31T01:50:43Z")

</div>

We are seeing this error in our build on Windows when hdmi is the output and I do Power → Sleep, and all audio stops playing, I click to resume, and the audio stays off. So I think this error does indicate a problem in fmod. It’s like our hdmi device drops off, the output list changes, and then fmod doesn’t reconnect when I bring Win 10 out of sleep by clicking on the lock screen.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [May 31, 2023, 5:21am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/14 "2023-05-31T05:21:36Z")

</div>

Can you please set your logging level to “LOG”, enable API error logging, and send through the output when this issue occurs? How to configure logging depends on how you are using the FMOD API: [Unity Integration](https://fmod.com/docs/2.02/unity/settings.html#enable-api-error-logging) | [Unreal Integration](https://fmod.com/docs/2.02/unreal/settings.html#enable-api-error-logging) | [FMOD Engine](https://fmod.com/docs/2.02/api/core-api-common.html#debug_initialize).  
What version of FMOD are you using?  
Are you using the Unity or Unreal integration, or FMOD Engine?

---

<div class="post-metadata">

### Author: ![niking](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@niking](https://qa.fmod.com/u/niking)
#### Post date: [June 14, 2023, 11:14am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/15 "2023-06-14T11:14:30Z")

</div>

We’ve started experiencing this on 2.02.14. It happens when disconnecting an audio device, but also when going to sleep and returning. The main issue is that it is being reported by Fmod as an error, stops any in game sounds and freezes the game when `channelGroup->setPaused(true)` gets called by the game code in the Error Handler.

[Fmod\_Device was unplugged.log](https://qa.fmod.com/uploads/short-url/etECXRXxvCBotwvlKyQDbOdeRgm.log) (1.2 MB)  
[Fmod\_Device was unplugged 2.log](https://qa.fmod.com/uploads/short-url/ucTyf8IxudKq80Ru3CZgMhEsRN4.log) (1.8 MB)

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [June 22, 2023, 2:02am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/16 "2023-06-22T02:02:08Z")

</div>

Apologies for the delayed response- I have still not been able to reproduce this problem, and I am finding that I don’t get any disconnection errors when sleeping and waking my machine, which is a little suspicious. Can you please upload a [DxDiag](https://support.microsoft.com/en-us/windows/open-and-run-dxdiag-exe-dad7792c-2ad5-f6cd-5a37-bf92228dfd85#:~:text=This%20tool%20is%20used%20to,search%20box%20on%20the%20taskbar) to your [FMOD Profile](https://fmod.com/profile#uploads) so I can see if there are any particular hardware requirements to reproduce this issue?

> [@niking](#):
>
> The main issue is that it is being reported by Fmod as an error, stops any in game sounds and freezes the game when `channelGroup->setPaused(true)` gets called by the game code in the Error Handler.

I have a few followup questions if you could please clarify the following:

- You are finding the game is freezing after returning from sleep, and it appears to be caused by FMOD?
- You have an error handler setup to pause the channel group when an error occurs, and if this wasn’t an error that wouldn’t happen, so it would be better if this was a warning instead of an error?
- Do you have any [`System::setCallback`](https://fmod.com/docs/2.02/api/core-api-system.html#system_setcallback) calls in your code that are registering a callback on [`FMOD_SYSTEM_CALLBACK_DEVICELISTCHANGED`](https://fmod.com/docs/2.02/api/core-api-system.html#fmod_system_callback_devicelistchanged) or [`FMOD_SYSTEM_CALLBACK_ALL`](https://fmod.com/docs/2.02/api/core-api-system.html#fmod_system_callback_all)?

---

<div class="post-metadata">

### Author: ![niking](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@niking](https://qa.fmod.com/u/niking)
#### Post date: [June 26, 2023, 3:50pm UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/17 "2023-06-26T15:50:49Z")

</div>

Hi Jeff,

Thanks to your questions, I managed to narrow down the issue pretty quickly!

- We call a custom assert handler from the `FmodLogCallback` when it is called with `FMOD_DEBUG_LEVEL_ERROR` (initialized with: `FMOD::Debug_Initialize( FMOD_DEBUG_LEVEL_WARNING, FMOD_DEBUG_MODE_CALLBACK, FmodLogCallback )` ).
- `FmodLogCallback` gets called twice when a USB soundcard is removed (or a Bluetooth headset is disconnected when going to/returning from sleep).
- Our internal assert handler makes the following Fmod calls:  
When it starts processing an assert:

```auto
mFmodSystem->getMasterChannelGroup(&channelGroup);
channelGroup->setPaused(true);

```

When it’s done processing an assert:

```auto
mFmodSystem->getMasterChannelGroup(&channelGroup);
channelGroup->setPaused(false);

```

Since there are two asserts, somewhere between these 4 calls, one of them starts hanging indefinitely, freezing the game. Probably because we are calling these functions from the FMOD mixer thread?

I’ve modified the `api/core/examples/play_sound.cpp` example to reproduce the issue [play\_sound.cpp.txt](https://qa.fmod.com/uploads/short-url/keEZ0EnOb9nGi13XVd4S9ZwZKC.txt) (6.1 KB). You should be able to test it out by replacing the original `play_sound.cpp` file, running the Debug x64 configuration from Visual Studio 2019 with Fmod 2.02.14 (not sure about other versions). While running and playing any sound in the example, unplug a USB sound output device (in my case, Creative Bluetooth Audio W2, but the original issue was reported to me by artists with wireless headphones connected directly via bluetooth to their computers).  
On my computer, `FmodLogCallback` was called once successfully from the FMOD mixer thread (whole function was executed), and then it was immediately called the second time and the call to `setPaused(true)` caused a freeze by never finishing.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [June 27, 2023, 5:07am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/18 "2023-06-27T05:07:22Z")

</div>

That is interesting, I can reproduce this issue now, thanks for the repro!  
Looks like a deadlock between the `Channel::setPaused` call and the `System::update` call, which definitely shouldn’t be happening. For your interest, I can reproduce this issue in previous versions of FMOD, and Winsonic/ASIO aren’t exhibiting the same behavior.  
I have passed this onto the Dev team to investigate further. Thank you for bringing this to our attention!

---

<div class="post-metadata">

### Author: ![IvanDBeltran](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@IvanDBeltran](https://qa.fmod.com/u/IvanDBeltran)
#### Post date: [June 25, 2024, 6:45pm UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/19 "2024-06-25T18:45:16Z")

</div>

Hi There, experienced the same today using Unity 2022.3.23f1 and FMOD 2.02.19 and windows.

Have you guys found any viable solution?

Thank you.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [June 27, 2024, 5:16am UTC](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230/20 "2024-06-27T05:16:08Z")

</div>

So you are getting a full deadlock when unplugging a device, and you are using the unmodified FMOD Unity integration?  
The issue as we understand it at this point is that `FMOD.System` API calls are being made inside an FMOD debug callback, but if you are using the Unity integration, we provide that callback implementation and we aren’t making any API calls into it.

Can you reproduce this issue reliably with your project? If you can, then could you please upload a stripped-down reproduction to your [FMOD Profile](https://fmod.com/profile#uploads)?

[Next page](https://qa.fmod.com/t/fmod-output-wasapi-mixer-read-getcurrent-padding-returned-0x88890004-device-was-unplugged/15230.md?page=2)
