Noise in Mednafen emulator when using Pipewire sound server

Hi Garuda users!

When I installed Garuda Linux, Mednafen emulator doesn’t have noise in Playstation Games and Saturn games, using.the sexyal-literal-default (alsa driver) in Mednafen config. After upgrading, a crack noise appears ingame.
Can anyone confirm this problem?

I found this problem in EndeavourOS but I don’t want to change my sound server to pulseaudio.

I’m using:

Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
    chip-ID: 8086:a170 class-ID: 0403
  Device-2: Creative Labs EMU10k1 [Sound Blaster Live! Series]
    driver: snd_emu10k1 v: kernel bus-ID: 05:00.0 chip-ID: 1102:0002
    class-ID: 0401
  API: ALSA v: k6.6.52-1-lts status: kernel-api with: aoss
    type: oss-emulator tools: N/A
  Server-1: PipeWire v: 1.2.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl

And I’m using:

alsa-oss (1.1.8-6)
alsa-plugins (1:1.2.12-3)
alsa-tools (1.2.11-1)
alsa-utils (1.2.12-1)
alsa-plugins (1:1.2.12-3)
lib32-alsa-plugins (1.2.12-1)
alsa-oss (1.1.8-6)
lib32-alsa-oss (1.1.8-4)

Thanks!

Since many kernel related issues are occuring recently on the forum , try running:

sudo pacman -S linux linux-headers and reboot , see if the issue still persists, if it does , changing audio output device in the settings should help.

Hi, thanks for the hints, but the issue still persists when changing the kernel and the audio output.

Perhaps change audio output device in system settings. List all the options available under audio output devices in system settings.

Hi sorry for the long delay.
I tried listening in Pavucontrol Analog Internal Audio but with them I cant hear any sound in Mednafen.

Also tried to change the audio device to the HDA Intel using a file in /etc/asound.conf with:

defaults.pcm.card 1
defaults.ctl.card 1

since when I do:
$ cat /proc/asound/cards
it answers:

File: /proc/asound/cards
0 [Live ]: EMU10K1 - SB Live! 5.1 [SB0220]
SB Live! 5.1 [SB0220] (rev.10, serial:0x80651102) at 0xd00
0, irq 18
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x2ffff20000 irq 130

But it doesn’t change the audio device.

Tried also to the change the Multimedia Device in System Settings but there is no option for this.

Don’t know how to change the audio device, I’m struggling with this problem for weeks.

Any hints?
Thanks for the patience.

Try this first:

Hi thanks for the answer.

reading the post I can change the audio device using:

$ pactl list sinks
$ pactl set-default-sink  ##number for the HDA Intel PCH

and select the another sink for my sound device (Internal Audio Analogic Stereo)

Sound works ok in firefox browser, but is muted in the emulator, so I changed the speakers conector in my desktop to my other sound device and vóila, sound is here.

Tested with this sound device and noise is gone in mednafen . Changed the audio device in mixer settings for firefox (to Internal Audio Analog Stereo) and sound returned.

Thanks for the answer.

1 Like

You could try adjusting the audio settings in the Mednafen config, maybe switching between different drivers (like switching to pulse or pipewire in Mednafen) and see if that clears up the crackling. You can also try updating PipeWire or checking if any configuration tweaks are needed.

1 Like

Hi everyone!

Sorry magnux but mednafen has only an alsa driver (not pulse or pipewire) for my system (there is oss, sdl, jack and openbsd settings but they don’t apply for me) . When I switched to Pulse Audio in Endeavour OS, mednafen sound driver worked ok but MAME stop to work, so I stay with this config. Thanks for the suggestion.