You are not logged in.
Hello !
I use PlayOnLinux to install games and apps to my desktop and after installing some games that require audio I have noticed that wine don't send the audio to my bluetooth headset that is already configured.
Actually wine is sending the audio to my notebook speakers even when they are disabled by default on PavuControl.
I have tested the phones and all the other applications that require audio on linux are working just fine, only wine apps are showing this behavior.
Thank you.
Best Regards.
Last edited by gpetruff (2017-06-21 17:48:56)
Offline
install pulseaudio-alsa and lib32-alsa-plugins. Also I'd usually recommend to not use PoL provided wine builds if it isn't explicitly necessary, you can tell the PoL installed containers to use the system version of wine instead of their own. That way you will use the wine provided by the system which has native pulseaudio support, which isn't guaranteed with whatever version is used by any given PoL installed game.
Online
install pulseaudio-alsa and lib32-alsa-plugins. Also I'd usually recommend to not use PoL provided wine builds if it isn't explicitly necessary, you can tell the PoL installed containers to use the system version of wine instead of their own. That way you will use the wine provided by the system which has native pulseaudio support, which isn't guaranteed with whatever version is used by any given PoL installed game.
Hey V1del .
I have those packages already installed on the latest version and I keep the wine version on POL always for system.
Unfortunately I don't know if those variables are the case here.
Any other ideas that can influence in this case ?
Thank you !
Offline
If wine gets registered within pulseaudio you should be able to move it over to the bluetooth headset like any other stream. check your winecfg and make sure that the pulsedrv is the used audio driver and that the output card is set to "system default" at least (or directly to the headset). If that doesn't help, play something and post
sudo fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs
Online
It's strange because by setting the audio to pulse on audio tab from winecfg command and testing it the sound works just fine!
I have runned the commands you requided and you can see the following output:
┌[user@Arch]-(/h/p)
└# sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: petruff 757 F.... pulseaudio
┌[user@Arch]-(~)
└> pacmd list-sinks
1 sink(s) available.
* index: 7
name: <bluez_sink.00_1E_7C_39_37_7A.a2dp_sink>
driver: <module-bluez5-device.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY
state: RUNNING
suspend cause:
priority: 9030
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 48.81 ms
max request: 4 KiB
max rewind: 0 KiB
monitor source: 7
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 2
fixed latency: 51.12 ms
card: 4 <bluez_card.00_1E_7C_39_37_7A>
module: 31
properties:
bluetooth.protocol = "a2dp_sink"
device.description = "Philips SHB4000"
device.string = "00:1E:7C:39:37:7A"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_00_1E_7C_39_37_7A"
bluez.class = "0x240404"
bluez.alias = "Philips SHB4000"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
ports:
headset-output: Headset (priority 0, latency offset 0 usec, available: yes)
properties:
active port: <headset-output>
1 sink input(s) available.
index: 11
driver: <protocol-native.c>
flags: START_CORKED
state: RUNNING
sink: 7 <bluez_sink.00_1E_7C_39_37_7A.a2dp_sink>
volume: front-left: 49151 / 75% / -7.50 dB, front-right: 49151 / 75% / -7.50 dB
balance 0.00
muted: no
current latency: 1026.62 ms
requested latency: 51.12 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: (null)
module: 11
client: 30 <Spotify>
properties:
media.role = "music"
media.name = "Spotify"
application.name = "Spotify"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "32"
application.process.id = "13778"
application.process.user = "petruff"
application.process.host = "BlackArch"
application.process.binary = "spotify"
window.x11.display = ":0"
application.language = "en_US.utf8"
application.process.machine_id = "d788aed68ace4f398a61f449e2f46fc1"
application.process.session_id = "c2"
application.icon_name = "spotify-client"
module-stream-restore.id = "sink-input-by-media-role:music"
When when I run spotify and a game together with spotify I got the following result on one of the results:
USER PID ACCESS COMMAND
/dev/snd/controlC0: petruff 757 F.... pulseaudio
/dev/snd/pcmC0D0p: petruff 4907 F...m AssassinsCreedI
Even when I muted all interfaces the game still creates a thread for the game and play it with the notebook speaker ignoring then the bluetooth headset.
Offline
Your wine isn't running on top of pulseaudio but is directly accessing your audio hardware device. Have you ever set any registry keys? What's the output of
aplay -L
Online
The output is :
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC269VC Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC269VC Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
Offline
Going to the PoL site for assassins creed
# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix
Check in the settings for the Assassin's Creed launcher, open the registry editor and remove those two keys.
Or simply try to run the exe directly using system wine, not using PoL at all.
Online
By deleting the registries the game stoped working.
About the fix you mentioned previously how do I apply it ?
You want me to edit the playonlinux command inside of /usr/bin ?
Offline
You could add those keys back (although on checking again it might be that this isn't set via the registry anyway, but you didn't delete ALL of them did you?, if you did use the repair functionality in PoL), but I guess the game stopped working in this case is the old PoL bug with not being able to find the ALSA pulse plugins.. I'm serious just try to run the assassinscreed.exe with normal wine as opposed to anything with PlayOnLinux something like
wine ~/.PlayOnLinux/wineprefix/AssassinsCreed/pathtoexe
Edit: if that doesn't work, or doesn't work correctly, try setting up a 32bit wine prefix with e.g.
WINEARCH=win32 WINEPREFIX=~/.wine32 wine ~/.PlayOnLinux/wineprefix/AssassinsCreed/pathtoexe
Last edited by V1del (2017-06-19 19:51:51)
Online
Hey V1del.
I have tried to use all the options you said but the game keeps returning a fatal error about missing the registries of the game.
Also I tried to change the sound setting with winetrick but so far no progress.
When I change to alsa the game get's muted and when I change it to pulseaudio the game keeps using the notebook speaker.
Any ideas ?
Thank you.
Offline
When you change to pulseaudio, do you now have a movable control in pavucontrol and friends (or repost/recheck
pacmd list-sink-inputs
?
Online
The result for the command is:
0 sink input(s) available.
The only option that makes wine find my audio devices is pulse audio.
Offline
I have installed all the audio libs in https://wiki.archlinux.org/index.php/wine#Sound and now the issue is solved.
The only thing that I think that is strange is that I have all the libs for running pulse, alsa and of course the advanced audios like Skyrim and etc.
Only the package that was new was the one related to oss.
One way or another the problem is solved.
Thank you for the help V1del!
Regards.
Offline