# Sound won't switch to new device

**URL:** <https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621>\
**Category:** FMOD Engine\
**Created:** [April 9, 2020, 12:26am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621 "2020-04-09T00:26:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [April 9, 2020, 12:26am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/1 "2020-04-09T00:26:08Z")

</div>

I don’t know if this is a FMOD issue or not, but I don’t know where else to look.

Once my game starts, if I switch to headphones, or some other source, the audio continues to come out the original source until I quit and restart the game.

I am running on a Mac (Mojave).

---

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [April 11, 2020, 5:28pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/2 "2020-04-11T17:28:24Z")

</div>

Anyone have any info on why audio in the game doesn’t switch to a new source without a restart?

---

<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:** [April 15, 2020, 2:22am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/3 "2020-04-15T02:22:51Z")

</div>

Device changes aren’t handled automatically. You should be able to use the `FMOD_OUTPUT_DEVICELISTCHANGED_CALLBACK` callback to detect when a new device is detected (eg. a headphone is connected) and use game code to automatically switch to that device.

[https://www.fmod.com/resources/documentation-api?version=2.1&page=plugin-api-output.html#fmod\_output\_devicelistchanged\_callback](https://www.fmod.com/resources/documentation-api?version=2.1&page=plugin-api-output.html#fmod_output_devicelistchanged_callback)

It’s interesting to hear that Macs will output to the speaker and headphone separately.

---

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [April 21, 2020, 10:28pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/6 "2020-04-21T22:28:16Z")

</div>

> [@richard\_simms](#):
>
> and use game code to automatically switch to that device.

Not sure I know what that means? Do I need to reinit FMOD? FMOD\_Studio\_System\_Initialize()?

That is the only thing I do to start audio in my game.

---

<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:** [April 24, 2020, 6:53am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/7 "2020-04-24T06:53:26Z")

</div>

After speaking with the dev team, it seems that FMOD should be switching to the default audio device when it’s plugged in. Let us try to run a few tests on our end and we’ll get back to you.

---

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [April 24, 2020, 10:52pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/8 "2020-04-24T22:52:10Z")

</div>

Thanks.

---

<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:** [April 28, 2020, 12:53am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/9 "2020-04-28T00:53:53Z")

</div>

From our tests on a few different Mac machines, it seems that FMOD does indeed switch automatically when a new device (ie. headphones) is plugged in. This happens in both the FMOD Studio application and in an in-game setting.

Does this happen on any other Mac? Are you seeing any errors appearing in the console of the FMOD Studio application or game?

---

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [April 29, 2020, 9:33pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/10 "2020-04-29T21:33:02Z")

</div>

I am using bluetooth headphone (I don’t have any others) and if I start the game, audio comes out the speakers, I open up System Prefs and change the audio to my earbuds and I hear the Mac chime, but the game (FMOD) audio continues out the Speaker. If I close the restart the game, audio is fine.

This also happens for our testers.

The same is true for FMOD studio, so it’s not just my game. There are no errors in the FMOD Console.

---

<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:** [May 4, 2020, 6:50am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/11 "2020-05-04T06:50:00Z")

</div>

I can now confirm that this same behaviour is happening on our machines too. Uncertain of the reason for this - it looks like whatever the Mac OS is doing to switch its default output to Bluetooth is not the same logic for any other device (headphone jack, USB interface, etc.). We’ll investigate this further and see what’s going on.

In the meantime, I’ve mentioned before that FMOD provides a callback for when a new device is detected. You can utilize this callback to offer to or automatically change to the new device when detected.

---

<div class="post-metadata">

**Author:** ![rontt](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rontt](https://qa.fmod.com/u/rontt)\
**Post date:** [May 4, 2020, 5:23pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/12 "2020-05-04T17:23:19Z")

</div>

Thanks for looking into this. I am still confused as to what I need to to after getting the FMOD\_OUTPUT\_DEVICELISTCHANGED\_CALLBACK? How do I switch to this new device? Or is this a OS X level call I need to make?

---

<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:** [May 5, 2020, 1:52am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/13 "2020-05-05T01:52:44Z")

</div>

Oh sorry, my mistake, I should have mentioned.

Once you have received the device change callback, you can then use the Core API function [System::setOutput](https://www.fmod.com/resources/documentation-api?version=2.1&page=core-api-system.html#system_setoutput) to choose this new device, or [System::setDriver](https://www.fmod.com/resources/documentation-api?version=2.1&page=core-api-system.html#system_setdriver) for macOS.

---

<div class="post-metadata">

**Author:** ![KurtHarlandLarson](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@KurtHarlandLarson](https://qa.fmod.com/u/KurtHarlandLarson)\
**Post date:** [June 13, 2020, 12:30am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/14 "2020-06-13T00:30:51Z")

</div>

> [@richard\_simms](#):
>
> w confirm that this sam

If it helps you guys at all:  
We are encountering this problem in an internal tool we made; nothing related to FMOD or even audio in particular. Exact same behavior. It must be something weird with how MacOS handles audio-device issues. I’d imagine lightweight audio applications like browser stuff and iTunes don’t encounter it, but anything more deep-level can?

---

<div class="post-metadata">

**Author:** ![paras238](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@paras238](https://qa.fmod.com/u/paras238)\
**Post date:** [June 13, 2020, 6:15pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/15 "2020-06-13T18:15:08Z")

</div>

Hello  
I just put up a post and immediately after, I stumbled across this one. I can confirm that I’m having the same issue on Windows. All the other active applications auto switch to the newly selected audio device except for my game and FMOD studio.

> [@FMOD does not auto-switch to the default playback device](https://qa.fmod.com/t/fmod-does-not-auto-switch-to-the-default-playback-device/15884):
>
> Hello I’ve noticed that when I change the default playback device from the bottom right of my taskbar, FMOD still continues playback on the previous device. While going through some other posts I got to know that there is System::setDriver that can be used to switch audio devices, but since UE4 (and literally every other active application) switches the audio device automatically, I was hoping that this capability is present in FMOD too? I also noticed the same behavior in FMOD studio. The stud…

---

<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:** [June 25, 2020, 2:03am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/16 "2020-06-25T02:03:17Z")

</div>

Thank you for this, an initial investigation by our dev team found the same problem occurs on both Windows & Mac but there are differences in how to handle them that makes it a bit trickier to navigate. In the meantime, please try the device list change callback suggestion above.

---

<div class="post-metadata">

**Author:** ![paul.masristone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/paul.masristone/32/2165_2.png) [@paul.masristone](https://qa.fmod.com/u/paul.masristone)\
**Post date:** [April 27, 2021, 9:43am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/17 "2021-04-27T09:43:16Z")

</div>

I’m finding that in FMOD Studio on Mac (Big Sur, M1 CPU) when I plug headphones into the jack other apps switch audio to it but not FMOD Studio. Going into Preferences \> Audio, the only output device listed is MacBook Pro Speakers.

How do I switch audio to the headphones?

 ![Screenshot 2021-04-27 at 10.42.16](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/6/6d87e342f76ac510e50acdf3ae9a9c667a62a145.png)

Also, is there progress towards a solution to the bug mentioned in this thread?

---

<div class="post-metadata">

**Author:** ![paul.masristone](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/paul.masristone/32/2165_2.png) [@paul.masristone](https://qa.fmod.com/u/paul.masristone)\
**Post date:** [April 27, 2021, 9:51am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/18 "2021-04-27T09:51:26Z")

</div>

More info and a workaround…

Having plugged in my headphones, I quit FMOD Studio and restarted it. Now it lists both **MacBook Pro Speakers** and **External Headphones** and has the headphones selected.

 ![Screenshot 2021-04-27 at 10.46.55](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/1/18942f8df3492afcb5ed026fa4006fb33265594d.png)

I am an FMOD newbie and just finding my way around. Given my experience and the fact this hasn’t been mentioned by others, I suspect this is an issue for _new installations_ of FMOD Studio. In any case, it’s obviously not auto-detecting available devices.

---

<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:** [April 28, 2021, 1:36am UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/19 "2021-04-28T01:36:19Z")

</div>

Thank you for this information. It looks like you can also work around this by going into File \> Preferences and changing Output Device to “No Sound” then back to “Core Audio”.

I’ve added this to a new bug report, thanks for bringing it to our attention.

---

<div class="post-metadata">

**Author:** ![dada\_da](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dada\_da](https://qa.fmod.com/u/dada_da)\
**Post date:** [August 5, 2023, 12:33pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/20 "2023-08-05T12:33:52Z")

</div>

I am having a related issue: After using “live connect” with Unity for the first time, my audio channels of my interface (RME UFX+) are offset by a few channels and I am unable to switch to any other Core audio device from the list in FMOD.  
Restarted FMOD and computer and am not running live connect or even Unity at all now.

I am also unaware of how I could switch the channels back to how they were, which is what is currently configured in audio midi settings (I checked settings in AMS for stereo, 5.1 Surround 2.0 and all others- all correct and how they were before).

Switching the default system audio (osx menu speaker icon) to another device has no effect for FMOD; but switches all other running audio applications. (None of them are running while I am experiencing the issue I described).

---

<div class="post-metadata">

**Author:** ![dada\_da](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dada\_da](https://qa.fmod.com/u/dada_da)\
**Post date:** [August 6, 2023, 3:52pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/21 "2023-08-06T15:52:53Z")

</div>

…turns out: I had the third-party tool “loopback” running in the background which was causing the rereouting.

---

<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:** [August 6, 2023, 11:19pm UTC](https://qa.fmod.com/t/sound-wont-switch-to-new-device/15621/22 "2023-08-06T23:19:03Z")

</div>

Thank you for sharing the solution.
