change playback device automatically

I have speakers and headphone to test the sounds of my game on different playback devices.
when I change unreal don’t update and keep playing on the same playback device, then I have to restart unreal to change form speakers to headphone and vice versa.

I’m working on windows

Hey gustavorios2,

Could you provide me with your ‘dxdiag’ as well as the version of the Engine you are using?

If you believe this has to do with the Engine and not your audio set up, could you also provide me with some reproducible steps within an empty project to get this issue to occur on my end?

Cheers,

Sure! dxdiag attached. I’m using 4.7.2

  1. before running ue4 set the first
    audio device as the default.
  2. run ue4 and create a new empty
    project with start content.
  3. play any sound from start content
    (the sound will play on the first
    device correctly).
  4. with the engine still running, change the second playback device to
    default
  5. with the engine still running, play any sound from start content
    (the sounds stills playing on the
    same device)
  6. restart the engine, and the sounds
    now play on the second device
    correctly.

33112-playbackdevice.png

[link text][2]

Hello gustavorios2,

So what you are experiencing is expected with the Engine, or any application that is dependent on sound currently playing. When you change the default playback device of your operating system you would want to restart your application or programs to allow for sound to play correctly through the new device.

With that being said there are a few things you could try in order avoid having to restart the editor. Try going into the ‘Editor Preferences’ of your project and enable the option ‘Allow Background Audio.’ You can find your ‘Editor Preferences’ within the ‘Edit’ menu.

Allow Background Audio

Try enabling this option, saving and closing, re-open the project, play a looping sound, and then try changing your default playback device. Let me know if this worked for you, or if you need additional assistance.

P.S. If you often change your default playback device you could check out this windows tool called ‘Audio Switcher’, which allows you to bind a key to an audio output device so you can toggle back and forth without having to open the sound options via Windows.

Audio Switcher

Cheers,