Why is my audio not working in my unreal engine 5?

Hey guys I am using unreal engine 5. I have a few problems with my audio. I cannot play any sorts of audio both in my editor as well as in my game mode. If I click the play button in my audio file It’s just like its playing but I cannot listen or hear anything. I have tried out multiple audio files and used default audio files too but the result is the same no sound. Can someone help me?

PS: My realtime is on and my realtime audio is set max…

If you’ve never heard any audio from Unreal, that sounds like it might be having troubles reaching your headphones/speakers, or it was unintentionally disabled. If you look in your logs, do you see any sections that look kind of like this:

[2022.08.13-03.14.59:635][  0]LogAudio: Display: Audio Device Manager Initialized
[2022.08.13-03.14.59:635][  0]LogAudio: Display: Creating Audio Device:                 Id: 1, Scope: Shared, Realtime: True
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: Audio Mixer Platform Settings:
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: 	Sample Rate:						  48000
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: 	Callback Buffer Frame Size Requested: 1024
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: 	Callback Buffer Frame Size To Use:	  1024
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: 	Number of buffers to queue:			  2
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: 	Max Channels (voices):				  0
[2022.08.13-03.14.59:636][  0]LogAudioMixer: Display: 	Number of Async Source Workers:		  0
[2022.08.13-03.14.59:636][  0]LogAudio: Display: AudioDevice MaxSources: 32
[2022.08.13-03.14.59:637][  0]LogAudio: Display: Audio Spatialization Plugin: None (built-in).
[2022.08.13-03.14.59:637][  0]LogAudio: Display: Audio Reverb Plugin: None (built-in).
[2022.08.13-03.14.59:638][  0]LogAudio: Display: Audio Occlusion Plugin: None (built-in).
[2022.08.13-03.14.59:648][  0]LogAudioMixer: Display: Initializing audio mixer using platform API: 'XAudio2'
[2022.08.13-03.14.59:716][  0]LogAudioMixer: Display: Using Audio Hardware Device Headphones (Arctis 7 Game)
[2022.08.13-03.14.59:717][  0]LogAudioMixer: Display: Initializing Sound Submixes...
[2022.08.13-03.14.59:722][  0]LogAudioMixer: Display: Creating Master Submix 'MasterSubmixDefault'
[2022.08.13-03.14.59:723][  0]LogAudioMixer: Display: Creating Master Submix 'MasterReverbSubmixDefault'

Does it have warnings or anything?

No I cannot find anything like this in my output log but when I packed and run my game in android device the sound works perfectly fine. I can also hear the sound in my windows player but just I cannot hear any sounds in my Unreal Engine both in Editor or in my Play Mode.

Ya, that sounds like you accidentally disabled the Audio Mixer on Windows somehow. Your WindowsEngine.ini file should have this under the [Audio] tab:

AudioMixerModuleName=AudioMixerXAudio2

Yeah I have this in my WindowsEngine.ini file… Any other suggestions

[EDIT SOLVED, SEE BELOW]

HI. I am also encountering this same issue on UE 5.0.3 and I have not clue how to fix it.
Running on Windows 10, Version 21H2, Build 19044.2006


The problem happens as follows:

I have created a fresh Third Person Sample and when the character is running or jumping, there is no sound. I have also tried with the First Person Sample and the sound works there but only when shooting.

Real-time volume is set to max
In the settings i have the Enable Game Sound and Enable Editor Sounds checked
The submixes in the project settings, properly show up as green or orange
The unreal editor shows up in the windows Volume Mixer and it is not muted
I have installed the latest directx end-user runtime and it still doesnt work
Below lines are present in the WindowsEngine.ini

AudioDeviceModuleName=XAudio2
; Defining below allows switching to audio mixer using -audiomixer commandline
AudioMixerModuleName=AudioMixerXAudio2

Like the user lantz.anna_1 , the same output log shows for me as well, so XAudio2 seems to be fine


I have a Realtek audio driver. I have tried to update it to the latest version and it did not work. I then tried to completely uninstall it and let windows reinstall it but it still doesn’t work.

I tried to press the Verify UE5 button but after it finished, the issue is still there

At this point my only option is to fully wipe Unreal Engine and Epic Games Launcher and reinstall both. If someone can help with this issue it would be great


EDIT:

I found the cause of the problem. For more context, i was creating an actor that has a Media Sound Component attached to it. I needed a lot of these actors, so i created each of them in the Construct (via blueprints) and then in some delegate i was setting up the Media Player for each Media Sound Component.

Now the plot twist is the following. If you create more than 30 of these Media Sound Components, the sound will stop playing (even if they are not bound to any media player). The solution was to create the Media Sound Component only when i need to play some sound and then explicitly remove it when I am done with the sound.

Also i mentioned above that the sound was not working in the Third Person Sample example. I dont know how this got fixed, it just suddenly started to work after i found the fix for those 30 Media Sounds Components. However they are separate projects so i dont understand how did that fix it.

Hopefully this info will help others as well

2 Likes

I think i ran into this same issue.
Try bumping your max audio channels from 32 to something crazy like 2048.
My sound files were working after that with a large object sampling where none played unless needed, but the channels couldn’t allocate.
No idea if this the absolute correct way as I’m still learning, but at 2048 the map runs and sounds work again…

project settings > Engine > Audio > Quality > Max Channels

4 Likes

Hey thanks for that info, my audio sources were using 33 channels…rip

Hello, here is another thing you should defiently check. If you are using Wwise then make sure that Wwise AudioLink Enabled disabled is this helps you to listen Wwise Events and normal WAV sounds