Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nix40 opened this issue Apr 26, 2024 · 6 comments
Open

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

Nix40 opened this issue Apr 26, 2024 · 6 comments

Comments

@Nix40
Copy link

Nix40 commented Apr 26, 2024

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
Copy link
Owner

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

@Nix40
Copy link
Author

Nix40 commented Apr 29, 2024

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
Copy link
Owner

Can you test this solution: microsoft/wslg#864

@Nix40
Copy link
Author

Nix40 commented Apr 29, 2024

Can you test this solution: microsoft/wslg#864

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

@InfoTeddy
Copy link
Contributor

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
Copy link
Author

Nix40 commented Apr 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants