No sound on Wine programs
-
- Level 2
- Posts: 10
- Joined: Sun May 21, 2023 11:02 pm
No sound on Wine programs
Hello, I've been having this issue for a while now. Even after updating Wine (8.6-1) on my Manjaro distro (Linux distro 6.1.29-1) I still don't get any sound, it doesn't even figure in my applications list in the sound control panel (xfce4-pulseaudio-plugin, pavucontrol) while running a wine program. On my "winecfg" panel, the sound test (winealsa.drv) does work, though.
Any tips?
Any tips?
Re: No sound on Wine programs
Is there a reason why you are using the Alsa driver in Wine instead of the default PulseAudio driver?
Do you have sound if you use the PulseaAudio driver?
You can change the audio driver to PulseAudio with winetricks:
Do you have sound if you use the PulseaAudio driver?
You can change the audio driver to PulseAudio with winetricks:
Code: Select all
winetricks sound=pulse
-
- Level 2
- Posts: 10
- Joined: Sun May 21, 2023 11:02 pm
Re: No sound on Wine programs
I've changed to see if it worked again, now I'm back to PulseAudio and there are no changes.jkfloris wrote: ↑Mon May 22, 2023 11:28 am Is there a reason why you are using the Alsa driver in Wine instead of the default PulseAudio driver?
Do you have sound if you use the PulseaAudio driver?
You can change the audio driver to PulseAudio with winetricks:Code: Select all
winetricks sound=pulse
Re: No sound on Wine programs
Which sound server do you use on your system? Only PulseAudio or with PipeWire?
You can find more information about your sound server with:
You can find more information about your sound server with:
Code: Select all
pactl info
# and check the volume with
amixer
-
- Level 2
- Posts: 10
- Joined: Sun May 21, 2023 11:02 pm
Re: No sound on Wine programs
jkfloris wrote: ↑Tue May 23, 2023 1:57 pm Which sound server do you use on your system? Only PulseAudio or with PipeWire?
You can find more information about your sound server with:Code: Select all
pactl info # and check the volume with amixer
Code: Select all
>pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 637
Tile Size: 65472
User Name: manjaro
Host Name: Manjaro
Server Name: PulseAudio (on PipeWire 0.3.70)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_38_00.6.analog-stereo
Default Source: alsa_output.pci-0000_38_00.6.analog-stereo.monitor
Code: Select all
>amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [on]
Front Right: Capture 65536 [100%] [on]
Re: No sound on Wine programs
That looks normal. And the default output is not muted either.
Do you see alsa_output.pci-0000_38_00.6.analog-stereo RUNNING in pactl?
If you are not sure if "alsa_output.pci-0000_38_00.6.analog-stereo" is the right sound card, you can use pactl list cards to find more information about the available sound cards.
Do you see alsa_output.pci-0000_38_00.6.analog-stereo RUNNING in pactl?
Code: Select all
# Play some music with a Wine program and run while the sound plays:
pactl list short
# Sample output
...
xxx alsa_output.pci-0000_38_00.6.analog-stereo PipeWire s24le 2ch 48000Hz RUNNING
-
- Level 5
- Posts: 354
- Joined: Tue Dec 24, 2019 3:23 pm
Re: No sound on Wine programs
Just wanted to note that one symptom noted in the OP was that the application wasn't showing up in pavucontrol. I just did a test(but I am using different versions of almost everything) and I did confirm that with wine-7.14 (Staging), wine applications using audio will show up in pavucontrol, at least this solitaire application did. It was listed as:
I don't mean to confuse things, so please ignore if this doesn't help at all.
Code: Select all
Masque Publishing Lobby: audio stream #1 on
-
- Level 2
- Posts: 10
- Joined: Sun May 21, 2023 11:02 pm
Re: No sound on Wine programs
I installed AIMP, and sound does work. It still doesn't work on games for example.
I'm not sure which card wine tries to use when I run games.
Code: Select all
61 alsa_output.pci-0000_38_00.6.analog-stereo PipeWire s32le 2ch 48000Hz RUNNING
61 alsa_output.pci-0000_38_00.6.analog-stereo.monitor PipeWire s32le 2ch 48000Hz IDLE
Code: Select all
>pactl list cards
Card #59
Name: alsa_card.pci-0000_38_00.6
Card #60
Name: alsa_card.pci-0000_38_00.1
-
- Level 2
- Posts: 10
- Joined: Sun May 21, 2023 11:02 pm
Re: No sound on Wine programs
I should note that back when sound did work, it refused to work when I had other non-wine sound running in the background, I don't know how to disable that.
-
- Level 5
- Posts: 354
- Joined: Tue Dec 24, 2019 3:23 pm
Re: No sound on Wine programs
Ugh, sometimes pulse doesn't seem so trustworthy. I remember it giving me a headache trying to capture sound from a USB capture card. I had to kill the pulseaudio daemon and avoid running firefox so it wouldn't start it up while i was recording.
Re: No sound on Wine programs
If you have the "Output device" set to (System default) in winecfg, then alsa_card.pci-0000_38_00.6 is used.I'm not sure which card wine tries to use when I run games.
Did you install the 32 or the 64 bit Windows version of AIMP?I installed AIMP, and sound does work. It still doesn't work on games for example.
If you installed the 64-bit version, you may be missing the 32-bit libraries (many games still use 32-bit).
Check if you have installed:
lib32-alsa-lib
lib32-alsa-plugins
lib32-libpulse
lib32-pipewire
-
- Level 2
- Posts: 10
- Joined: Sun May 21, 2023 11:02 pm
Re: No sound on Wine programs
I was missing the following:jkfloris wrote: ↑Wed May 24, 2023 4:12 pmIf you have the "Output device" set to (System default) in winecfg, then alsa_card.pci-0000_38_00.6 is used.I'm not sure which card wine tries to use when I run games.
Did you install the 32 or the 64 bit Windows version of AIMP?I installed AIMP, and sound does work. It still doesn't work on games for example.
If you installed the 64-bit version, you may be missing the 32-bit libraries (many games still use 32-bit).
Check if you have installed:
lib32-alsa-lib
lib32-alsa-plugins
lib32-libpulse
lib32-pipewire
lib32-libpulse
lib32-pipewire
Thank you, you were very helpful, now sound works even with other sound running in the background. I don't how remember how did those got removed or if they were installed at all.