No audio in Linux build
Validation
- [x] I have checked the Issues page to see if my problem has already been reported
- [x] I have confirmed that this bug does not occur in the original game running on original Xbox 360 hardware
Describe the Bug
UnleashedRecomp has no audio during patching and in-game.
Steps to Reproduce
Steps to reproduce the bug:
- run the exec either with game already setup or from fresh
I'm not sure if the patcher has audio in it, but the game itself doesn't have audio.
Expected Behavior
There to be audio
Footage
I don't think recording will help but when I start up the game, I see this in the terminal:
>> ./UnleashedRecomp
[*] OS doesn't support registry
[*] Failed to init audio subsystem: dsp: No such audio device
[*] SDL video driver: "x11"
Specifications
Fill out the following details:
- CPU: Intel(R) Core(TM) i5-12600K
- GPU: NVIDIA RTX 3060
- GPU Driver: NVIDIA 550
- OS: Manjaro 24.2
- Version: 1.0.0
Additional Context
I downloaded the binary from the actions page. I am not using the flatpak download from the releases.
This seems to happen with workflow binaries but not with the flatpak (though the latter seems to have some issues with choppy audio on some audio devices?)
flatpak works fine it seems! I was hoping I didn't have to use flatpak to install it but it works for now. The terminal also doesn't report failing to initialize the audio like in my bug report.
but now I'm getting an installation failure when installing all the content.
Error: Unable to create directory at /var/data/dlc/Spagonia Adventure Pack
I think it may have to do with how I installed it with flatpak. I only did a user level installation cuz I generally try not to install things at a system level from flatpak.
Yeah, same issue. Tried opting for a different audio backend through SDL_AUDIODRIVER env var, no dice. I also tried installing dsp package from Arch Linux repositories, no dice either sadly.
same problem!, tried all SDL_AUDIODRIVER i could test :p i didnt tried flatpak version cuz i couldnt choose a place to install the game and i had no space on my main drive
For the time being, building it on your own works like a charm with functioning audio. @blueskythlikesclouds likely forgot to include dev headers for building with pipewire/pulse support.
For the time being, building it on your own works like a charm with functioning audio. @blueskythlikesclouds likely forgot to include dev headers for building with pipewire/pulse support.
Did you have to change the CMakeFiles in any way to get the linux build to support pipewire/pulse? I'm pretty bad at reading them lol.
looks like building the from the source files without changing the cmake files worked out, and I can hear audio.
I tried the new 1.0.1 artifact produced by the workflow file, but it still has the same issue it seems. I can't hear audio from that binary.
But at least compiling it myself lets the audio work.
can confirm this has affected me too
i can confirm too in my case using this hardware:
Mesa 25.1 (ernst ppa)
Xubuntu 24.04 x64 - Kernel 6.6.3 generic (ubuntu mainline)
CPU: Ryzen 5 4600G (Zen 2 7nm - Stock 3.700mhz) overclocked 4.300mhz All Cores (HT Disabled) + Scythe Mugen 5 Black Edition + TF9 14W/M.K Thermal Paste
MEMORY: 16GB DDR4 4133mhz (2x8) 1.4v Mushkin Redline (dual channel: 64.5 gb/s)
GPU: AMD Vega 7 Renoir 448 shaders - 28 tmus - 8 rops* (Stock 1900mhz) overclocked 2300mhz
MAINBOARD: MSI PRO B550-VC
For the time being, building it on your own works like a charm with functioning audio. @blueskythlikesclouds likely forgot to include dev headers for building with pipewire/pulse support.
how long will it take for that too be added I'VE BEEN WAITING SINCE 2011 AND I JUST WANT TOO PLAY THIS ON PC NOW UUUUUUUUUUUUUGH
so can we get audio now? it's only been almost 3 DAYS!!!
so can we get audio now? it's only been almost 3 DAYS!!!
You were already given several different workarounds (build from source or use the Flatpak). If that still doesn't satisfy you, either submit a PR to fix it or don't bump issues with nagging comments like this.
This is a developer issues board, not a fan forum. Developers have a lot to deal with already for what they offer for free, so don't stress that any more than it needs.
so can we get audio now? it's only been almost 3 DAYS!!!
You were already given several different workarounds (build from source or use the Flatpak). If that still doesn't satisfy you, either submit a PR to fix it or don't bump issues with nagging comments like this.
This is a developer issues board, not a fan forum. Developers have a lot to deal with already for what they offer for free, so don't stress that any more than it needs.
Your actually right. I'm sorry for being rude you guys are doing literal gods work and im acting like a spoiled brat
I'm happy to know, the audio bug is not as an individual bug, but as something which can be reproduced by other users, hopefully a fast fix will come out, also tried on a live USB distro to see if bug persists, and it does.
+1 here. Btw, for any newbie like me on Arch who can't build the package, install the requirements for building and on top of that libc++ and lld. Also,don't build the package on a folder with spaces like "Sonic Unleashed" and better build it on a folder without spaces called "Sonic_Unleashed"
Could this be caused by the built-in SDL2? Let me preface first saying that I haven't really used Linux until a few months ago to port Recomp to it so I have no idea what the standards are. Should system SDL2 be used?
Using sudo modprobe snd-pcm-oss fix it on my side.
Look like the program load an obsolete kernel module.
This bug is fixed, I have just compiled again 07/03/2025, and I get sound this time, bug is gone.
This bug is fixed, I have just compiled again 07/03/2025, and I get sound this time, bug is gone.
If you'd actually read the issue then you'd know that locally building the binary wasn't the issue to begin with - the workflow builds are still broken in this respect, regardless of audio driver requested:
$ SDL_AUDIODRIVER=alsa ./UnleashedRecomp
[*] OS does not support registry.
[*] Failed to init audio subsystem: Audio target 'alsa' not available
Could this be caused by the built-in SDL2? Let me preface first saying that I haven't really used Linux until a few months ago to port Recomp to it so I have no idea what the standards are. Should system SDL2 be used?
@blueskythlikesclouds Yes, whenever possible, always go for system dependencies other users gotta look up for and install before. No need to bundle dependencies itself (that's Windows-only practice).
I'm unfortunately not as knowledgeable on that matter either, so I might be wrong. Do consult with somebody else in your team about it, just to be sure.
Sorry! Similar issue has been affecting me for a while now on Kubuntu 24.04. With or without controller plugged in, the game makes zero sound, I am also currently using latest binary from the actions tab. The reason I'm making this is that the installation was a bit tedious, and I don't really want to have to compile the thing itself again, so I'm asking to check if any better solutions have been found as of yet, all other issues point to this one at the end.
Please release a new artifact with sound
Please, we are needing this pre-compiled with the fix for the audio under Linux, it's so much worse playing this with no sound, Linux deserves to work fully as it preforms better than the windows version. The replies make it sound like you just need to enable the binds to the headers - which may or may not be true, but considering the skills involved in reverse engineering this game, I'd hope we'll get an update sooner or later :) Playing it in windows for now, thank you.
Please, we are needing this pre-compiled with the fix for the audio under Linux, it's so much worse playing this with no sound, Linux deserves to work fully as it preforms better than the windows version. The replies make it sound like you just need to enable the binds to the headers - which may or may not be true, but considering the skills involved in reverse engineering this game, I'd hope we'll get an update sooner or later :) Playing it in windows for now, thank you.
If you feel that ~~entitled~~ impassioned about it, feel free to submit a PR with the needed fix. :)
Again, the Flatpak also provides a playable experience with no compilation required, if playability is all you're concerned about.
Check my commits, I do enough, I would just like to see this fixed so others can enjoy it, the last games I've played myself were Lucas Arts Collection in 1998 and I did Play the original The Longest Journey - which I committed code and feedback to the HD remake. and in 2020 I played Life Is Strange. So I am honestly not asking for myself.
I'd love to be entitled, impassioned. but alas, I just see great works and with a little tweak it could be grand! If I had the time and energy left after my latest project I'd consider doing the work, but it doesn't mean I can't ask the original releaser to please consider it? It's for the good for the project.
It's not that we aren't considering it, we just don't know what the problem is. The native Linux builds work fine on my machine. If you are willing to debug it yourself and figure out a solution, we'd love it if you submitted a fix.
Let's be clear: only issues on actually released builds are prioritized. Just because you're running into an issue into some build provided by CI doesn't mean it'll be given priority. Especially when if you actually build the program yourself, most of the time it works just fine.
There's far more important issues which are currently being prioritized for a 1.0.3 release. Either help troubleshoot or just wait. Don't beg on the issue for a fix as that does nothing to help identify what the problem is. If you think it's low hanging fruit and it's not hard to fix, then go ahead and make a PR: nobody's discouraged from trying.