Audio in Unity 2022.3.14f1 LTS linux not working

Hi guys,

It is my best hope that all are well, I recently installed unity latest lts version on my ubuntu 20.04 machine and everything seems to be working well except the audio of the whole engine, the audio file is playing on the editor but no sound can be heard, i’ve tried everything on previous same issues found on the forum and online in general but it seems a straight answer cannot be found, this might be a bug in the engine in respect to linux builds

If any of you great people knows a workaround on this issue, i’ll be grateful for your assistance

Thanks

Hello sir!

A few questions :

  • Have you tried other versions of Unity on your computer where audio was working?
  • Have you ever changed your ALSA and/or PulseAudio configuration? Tweaking that might affect Unity’s audio output.
  • Have you noticed any error in the Editor log on that matter?
  • Is audio enabled in Edit > Project Settings > Audio?

Hi SeventhString,

Well, after doing some system updates, I fired up the engine again and everything was fine,

Thank you for the response

Best Regards

1 Like

I’d love to know what you did to get it working.
I’ve been stuck on 2022.3.8f1 for ages because of this bug: Unity Issue Tracker - [Linux] No audio output when playing audio

Also this thread: No audio after updating from 2022.3.8f1 to 2022.3.10f1 on Linux

I installed pavucontrol to see where unity was sending the audio. I’m not sure why the unity sink input is sending its output to HDMI (see picture). that makes no sense. I have nothing plugged in. Should be sending it to the default sink. When I map it manually using the dropdown to sof-soundwire speaker , i get sound back. I haven’t adjusted my alsa or pulseaudio config from default ubuntu.
This fix doesn’t stick… if you stop playing audio in the editor eventually you will need to reset it.
Also - i sometimes seem to lose system sounds when I do this… so its not really a great workaround

4 Likes

Would also like to know what you did to get it working again. What system updates specifically?

Thank you this worked for me!

It would be great if in addition to fixing this bug, there would also be a way to list and select active audio output device.

This would be a great addition in fact, we’re looking into it and it’s a bigger challenge than expected, as anything we do must work on ALL platforms. I don’t want to give you false hopes, but keep faith! One day, we’ll have the best audio authoring experience out there :slight_smile:

1 Like

To the Unity audio team - thanks for fixing this bug in 2022.3.27f1. I’ve been working around this bug with extra workflow steps for so long, and I’m really happy not to have to do extra audio enabling steps every time i hit play.