Open abdilra7eem opened 1 year ago
I experienced this exact same issue with WarZone2100 (net.wz2100.wz2100).
Sound works fine for me on
Operating System: openSUSE Tumbleweed 20221125 Kernel Version: 6.0.8-1-default (64-bit)
and I get the same error messages:
flatpak run com.play0ad.zeroad
TIMER| InitVfs: 454.278 us
FILES| Main log written to '/home/alexander/.var/app/com.play0ad.zeroad/config/0ad/logs/mainlog.html'
FILES| Interesting log written to '/home/alexander/.var/app/com.play0ad.zeroad/config/0ad/logs/interestinglog.html'
TIMER| CONFIG_Init: 2.49944 ms
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
Sound: AlcInit success, using OpenAL Soft
FILES| UserReport written to '/home/alexander/.var/app/com.play0ad.zeroad/config/0ad/logs/userreport_hwdetect.txt'
TIMER| RunHardwareDetection: 3.77263 ms
FILES| Hardware details written to '/home/alexander/.var/app/com.play0ad.zeroad/config/0ad/logs/system_info.txt'
TIMER| write_sys_info: 16.1801 ms
TIMER| InitRenderer: 1.64825 ms
TIMER| ps_console: 3.38565 ms
TIMER| ps_lang_hotkeys: 952.275 us
TIMER| common/modern/setup.xml: 89.087 us
TIMER| common/modern/styles.xml: 96.927 us
TIMER| common/modern/sprites.xml: 938.139 us
TIMER| common/global.xml: 154.583 us
TIMER| common/setup.xml: 120.624 us
TIMER| common/sprites.xml: 260.702 us
TIMER| common/styles.xml: 36.831 us
TIMER| pregame/backgrounds/: 76.15 us
TIMER| pregame/sprites.xml: 81.493 us
TIMER| pregame/styles.xml: 16.339 us
TIMER| pregame/mainmenu.xml: 16.2668 ms
TIMER| common/modern/setup.xml: 68.441 us
TIMER| common/modern/styles.xml: 58.742 us
TIMER| common/modern/sprites.xml: 721.583 us
TIMER| common/global.xml: 146.096 us
TIMER| common/sprites.xml: 258.515 us
TIMER| splashscreen/setup.xml: 20.472 us
TIMER| splashscreen/splashscreen.xml: 7.49531 ms
TIMER| common/modern/setup.xml: 68.556 us
TIMER| common/modern/styles.xml: 70.255 us
TIMER| common/modern/sprites.xml: 737.451 us
TIMER| msgbox/msgbox.xml: 7.32553 ms
TIMER| shutdown Renderer: 698.792 us
TIMER| shutdown SDL: 10.7273 ms
TIMER| shutdown UserReporter: 38.928 us
TIMER| shutdown ConfigDB: 47.692 us
TIMER| resource modules: 80.9773 ms
TIMER TOTALS (7 clients)
-----------------------------------------------------
tc_pool_alloc: 0 c (0x)
tc_png_decode: 4770.16 kc (2x)
tc_dds_transform: 12.7 kc (11x)
tc_transform: 469.35 kc (5x)
tc_plain_transform: 444.625 kc (5x)
tc_ShaderValidation: 598.136 kc (1x)
xml_validation: 152.498 kc (1x)
-----------------------------------------------------
TIMER| shutdown misc: 3.77264 ms
Hi all,
I'm running Fedora 37 Workstation. I installed 0AD from Flathub (Flatpak) version 26. The game runs and I can start a game and change settings, but the sound isn't working.
I looked into the sound settings in Gnome while the game is running, and I see "pyrogenesis" in the list of apps with sound output.
I ran it from the terminal, and I see the following lines in the output:
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) Sound: AlcInit success, using OpenAL Soft
Fedora uses Pipewire (with PulseAudio support) by default, and OpenAL-soft is installed.
I checked the Flatpak permissions, and they are set properly.
I was told that SuperTux also uses OpenAL-soft, so I installed it from flathub, and the sound is working without issues. I double-checked the permissions and compared the two; all set correctly, so this is definitely not a permissions issue, and ALSoft works normally from Flatpaks.
I installed 0AD rpm package (same version) from the Fedora repo, and it's working without issues. I also noticed that the Fedora build has a much better performance than this build.
This is most likely a bug in the Flatpak build of 0AD. I don't have another system to reproduce on; I hope the community can help in this.