# Is it possible to remove a callback to DEVICELISTCHANGED?

**URL:** <https://qa.fmod.com/t/is-it-possible-to-remove-a-callback-to-devicelistchanged/18996>\
**Category:** FMOD Engine\
**Tags:** unity\
**Created:** [July 12, 2022, 9:06pm UTC](https://qa.fmod.com/t/is-it-possible-to-remove-a-callback-to-devicelistchanged/18996 "2022-07-12T21:06:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reification](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@Reification](https://qa.fmod.com/u/Reification)\
**Post date:** [July 12, 2022, 9:06pm UTC](https://qa.fmod.com/t/is-it-possible-to-remove-a-callback-to-devicelistchanged/18996/1 "2022-07-12T21:06:11Z")

</div>

According to the documentation if a core system callback is set for DEVICELISTCHANGED it will override the default device switching behavior.  
[https://www.fmod.com/docs/2.01/api/studio-api-system.html#studio\_system\_setcallback](https://www.fmod.com/docs/2.01/api/studio-api-system.html#studio_system_setcallback)  
[https://fmod.com/docs/2.00/api/core-guide.html#audio-devices-automatic-detection-of-device-insertion-removal](https://fmod.com/docs/2.00/api/core-guide.html#audio-devices-automatic-detection-of-device-insertion-removal)

> [@Switching audio output device (esp. for VR)](https://qa.fmod.com/t/switching-audio-output-device-esp-for-vr/15386/7):
>
> This has been added in version 2.01.00: [https://fmod.com/resources/documentation-api?version=2.1&page=welcome-revision-history.html](https://fmod.com/resources/documentation-api?version=2.1&page=welcome-revision-history.html) Core API - Win - FMOD\_OUTPUT\_DEVICELISTCHANGED\_CALLBACK now responds to default device changes.

Suppose that I want to restore the default device switching. Would I remove the callback by registering the same callback with a mask value of 0?

(I’ll follow up with test results when I have them - this post is just to seed the topic)

---

<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:** [July 18, 2022, 11:00pm UTC](https://qa.fmod.com/t/is-it-possible-to-remove-a-callback-to-devicelistchanged/18996/2 "2022-07-18T23:00:03Z")

</div>

Setting the callback to a mask of “0” will disable the callback and allow default device switching behaviour to resume.
