clementgallet / libTAS

GNU/Linux software to (hopefully) give TAS tools to games
GNU General Public License v3.0
494 stars 56 forks source link

No audio coming out of libTAS even if "Mute" is unchecked #602

Open Nix40 opened 5 months ago

Nix40 commented 5 months ago

I'm running mame through libTAS and no audio is coming out of the games even if the "Mute" checkbox is unchecked. My distro is Kubuntu 24.04 LTS. Mame version is 0.264, libTAS version is the latest one (v1.4.5).

clementgallet commented 5 months ago

Can you check if you have sound when doing an encode?

Nix40 commented 5 months ago

Well, I managed to solve the problem in Kubuntu by creating a file called "default.conf" with "options snd_hda_intel index=1" as content, then stuffing it in "/etc/modprobe.d/".

I still have another related problem, though. I can't get audio through WSL. The following error happens:

image

I did some research and it's apparently because WSL doesn't support ALSA, only PulseAudio. Source: https://stackoverflow.com/questions/68310978/playing-sound-in-docker-container-on-wsl-in-windows-11

So is there really no way to get audio and working save states at the same time through WSL?

clementgallet commented 5 months ago

Can you test this solution: https://github.com/microsoft/wslg/issues/864

Nix40 commented 5 months ago

Can you test this solution: microsoft/wslg#864

Where exactly is that ".asoundrc" file located? I'm not sure where to look.

InfoTeddy commented 5 months ago

Where exactly is that ".asoundrc" file located? I'm not sure where to look.

It's located at ~/.asoundrc, as it says in the linked issue. ~ refers to your home directory.

Nix40 commented 5 months ago

There was no .asounrc file in that directory (I also had "Show Hidden Files" checked). Anyway, I created a file with such a name there, and added this as content: file

Is this right? Because it didn't work. I'm still basically a noob with linux and don't know how to deal with coding very well. I read elsewhere that there needs to be something like this involved:

pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}

I don't know where the "pulse" part should go in that. If possible, please tell me exactly how the text should be like so I can just copy paste it.