Search Issue Tracker

In Progress

Fix In Review for 2021.3.38f1, 2022.3.27f1

Fixed in 2023.2.20f1, 6000.0.0b12

Votes

32

Found in

2021.3.31f1

2022.3.10f1

2023.1.16f1

2023.2.0b12

2023.3.0a8

Issue ID

UUM-53143

Regression

Yes

[Linux] No audio output when playing audio

--

-

Reproduction steps:
1. Create a new project
2. Move the “TestBugNoAudio” file to the Assets directory
3. In the Project window, select “TestbugNoAudio”

Expected result: Audio is played
Actual result: No audio is played

Reproducible with: 2021.3.31f1, 2022.3.10f1, 2023.1.16f1, 2023.2.0b11, 2023.2.0b12, 2023.3.0a8
Not reproducible with: 2021.3.30f1, 2023.2.0b10

Reproducible on: Ubuntu 23.04
Not reproducible on: Windows 10 Pro 22H2, Ubuntu 22.04

Notes:

* Audio is not played anywhere (Player builds, Play Mode, Inspector)
* Does not reproduce for everyone

  1. Resolution Note (fix version 6000.0.0b12):

    In our Linux Pulse audio driver, make sure to select the correct default output device. Previously, on some systems and some versions of Linux, we could end up with no audio output or audio output being routed to an unexpected device.

Comments (12)

  1. LaserJaguar

    Mar 26, 2024 14:07

    Seems like this issue is because in some Linux systems default sound device is HDMI audio, which may exists on GPU but not on the display.
    So as a workaround you can disable it (in BIOS, or in your Linux). Type something like this in terminal:
    pacmd list-cards
    remember name of top-most card in that list (Without symbols < > ). Most likely it will be something like alsa_card_pci_manyNumbers. Should contain description how it is indeed HDMI. Then type:
    pacmd set-card-profile YourHDMICardName off
    Reboot.
    Enjoy.
    -----
    Or you can disable it in some audio controlling software or in some BIOS, but use it only if you are certain you don't need HDMI audio at all.

  2. rmd41m

    Mar 22, 2024 08:07

    manjaro 2022.3.22f1, 2022.3.14f1. same problem

  3. love_wessman

    Jan 10, 2024 11:00

    Can confirm that this is still an issue in 2022.3.16f, running a player built for linux, on Ubuntu 22.04. Switching from one audio output device and back "fixes" the issue, but only for the duration of the apps runtime.

  4. unity_C4B0EE9C22CBCD6B06ED

    Dec 30, 2023 20:24

    Having the same issue on ubuntu 23.10, unity version 2022.3.14f1

  5. Irina-uk

    Dec 12, 2023 16:59

    I wrote on the fmod forum about this problem, the administrator replied that the unity editor uses an old version of this mod to output sound. By the way, this problem with the ports was also on their forum with fmod, the sound was also sent to port 0, but the active port of the sound speakers is different. They somehow solved it, but they couldn't help me with the unity audio engine. Thank you for your work.

  6. JulianNeil

    Dec 09, 2023 09:50

    As a possible workaround, I managed to get audio working again after updating to a version that had no audio. See https://forum.unity.com/threads/audio-in-unity-2022-3-14f1-lts-linux-not-working.1521397/#post-9519508

  7. JulianNeil

    Dec 09, 2023 07:27

    @IRINA-UK which logs are you looking at?

  8. Irina-uk

    Nov 22, 2023 15:39

    According to the logs, it can be seen that the sound goes to port 0, this port belongs to the HDMI output of my audio card. However, by default there is an output to the speakers, it is 4 in the list. Alsa linux. All applications except Unity Editor have sound. A temporary solution is to change the default ports using PulseAudio, but the values are reset and not saved. OS: POP OS 22

  9. fyftof

    Oct 31, 2023 20:42

    Using Ubutnu 22.04, sound working only in 2021.3.30f1

  10. mfhassan

    Oct 31, 2023 17:50

    I tried these version on Manjaro Linux but no sound, 2023.2.0b15,2023.1.18f1,2022.3.12f1
    Than i tested on my old Macbook air it is working correctly in mac

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.