Description

Ensure when swapping to a newly connected USB audio device. 

{no format}

Ensure condition failed: Cache.Contains(DeviceIdName) [\build++UE5\Sync\Engine\Source\Runtime\Windows\AudioMixerXAudio2\Private\WindowsMMDeviceInfoCache.cpp{no format}

file:///D:/build++UE5SyncEngineSourceRuntimeWindowsAudioMixerXAudio2PrivateWindowsMMDeviceInfoCache.cpp]

 

Steps to Reproduce

1) Launch AQ_DeviceSwap
2) PIE and play any sound
3) Connect a PS.5 controller or any other USB audio device, such that Windows tries to swap to that output*

*Note: The device you connect needs to be new to Windows. You may need to restart your machine before testing if the device is already plugged in.

Expected Result:
Device swaps without ensuring

Actual Result:
An ensure occurs in the output log

Callstack
UnrealEditor-AudioMixerXAudio2!Audio::FWindowsMMDeviceCache::OnDeviceStateChanged(FString const &,Audio::EAudioDeviceState,bool) [WindowsMMDeviceInfoCache.cpp:445]UnrealEditor-AudioMixerXAudio2!Audio::FWindowsMMNotificationClient::OnDeviceStateChanged(wchar_t const *,unsigned long) [WindowsMMNotificationClient.cpp:317]MMDevAPI!7ffcf7c20000  + 4f214MMDevAPI!7ffcf7c20000  + 3052cMMDevAPI!7ffcf7c20000  + 14539ntdll!7ffd01a20000  + 21323ntdll!7ffd01a20000  + 16fd6KERNEL32!7ffd01140000  + 154e0ntdll!7ffd01a20000  + 485b

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-145687 in the post.

0
Login to Vote

Fixed
ComponentUE - Audio
Affects Versions5.0
Target Fix5.0.2
Fix Commit19819022
Release Commit19819022
CreatedMar 11, 2022
ResolvedApr 19, 2022
UpdatedJan 25, 2023