You are not logged in.

#1 2010-08-15 14:46:30

Grimn
Member
Registered: 2006-12-23
Posts: 136

[Solved]Wine applications don't have sound

Hey, I had a problem with the hardrive that had my Arch Linux system and so had to do a fresh install to another hard drive.
By doing so I've run into some 'classic' problems regarding sound output, I eventually managed to have my system output sound but not my wine applications.
I am using ALSA, KDE, gstreamer phonon engine. I also added the following into my /etc/modprobe.d/modprobe.conf 'options snd-emu10k1 index=1', because snd-emu10k1 is my sound card driver (I have another one integrated which is snd-hda-intel) and index=1 because the system recognises the internal sound card first.
My system is 64 bits and all packages are updated to the latest version in the repositories including lib32 libraries (but prolly some lib32 is missing for wine to work out well with sound).

Some error messages I get while running wine:
err:module:load_builtin_dll failed to load .so lib for builtin L"winemp3.acm": libmpg123.so.0: wrong ELF class: ELFCLASS64
err:mmdevapi:MMDevEnum_Create OpenAL support not compiled in, application will not find sound devices

These seem to be the problem but I couldnt find any libmpg123 nor lib32-mpg123 but have mpg123 installed as well as openal and lib32-openal.

Thanks.

Last edited by Grimn (2010-08-15 18:10:36)

Offline

#2 2010-08-15 14:57:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

> These seem to be the problem but I couldnt find any libmpg123 nor lib32-mpg123 but have mpg123 installed as well as openal and lib32-openal.
http://www.archlinux.org/packages/?sort … =&limit=50
lib32-mpg123 is in Community.

Offline

#3 2010-08-15 15:05:33

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

Thanks for the quick reply. The reason I stated there was no lib32 package is because when I do pacman -Ss lib32-mpg123 pacman does not output any package.
I synced all repos, I have community repo enabled, I even tried changing mirrorslist but still it can't find that particular package.
I had a similar issue with the latest kernel, had to search for a repo with updated packages :\

PS: I downloaded the pkg from your link and installed the error disappeared but the openal error is still there and still no sound sad

Last edited by Grimn (2010-08-15 15:10:18)

Offline

#4 2010-08-15 15:14:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

http://forum.winehq.org/viewtopic.php?t … 97fab14a39
Edit: Not exactly related https://bbs.archlinux.org/viewtopic.php … 94#p799594 but you can try disabling mmdevapi in winecfg.

Last edited by karol (2010-08-15 15:16:23)

Offline

#5 2010-08-15 15:18:55

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

Thanks again.
Well I already tried disabling mmdevapi, it gave even more errors.
Also according to the first link the problem is the wine package Arch has and not configuration/lack of packages problem, so it's out of my hands (unless there is a good enough version in AUR for me to build and that will allow WoW 3.3.5 to work as well).

Offline

#6 2010-08-15 15:22:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

http://aur.archlinux.org/packages.php?ID=36298 <- it has 'wow' in the name but I've never used it - you can always ask the maintainer.
Also http://aur.archlinux.org/packages.php?ID=33975 and http://aur.archlinux.org/packages.php?ID=33974

Last edited by karol (2010-08-15 15:23:51)

Offline

#7 2010-08-15 16:11:47

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

Thanks for all the help.

I have tried to build wine-wow64-git but it took about 1h only to fail at the end after building 5 dependencies packages because of some configuration file necessary to authenticate to the AUR server. I give up trying to install such time consuming wine builds, if the issue is the Arch wine package then I will follow your previous suggestion and contact the package maintainer.
What makes me hesitate is that I can't be the only one having these issue with this particular package, can I? Because if I am the only one then it shouldn't be package build related. :\

Anyway thanks a lot once again.

PS: ok, this is driving me nuts: why the hell I can't find packages that are in the repositories on the Package database on ArchLinux's frontpage? E.g.: if I do pacman -S wine I get lib32-wine package installed but in the DB I can only find wine (different version and all) for both i686 and x86_64

Last edited by Grimn (2010-08-15 16:16:25)

Offline

#8 2010-08-15 16:16:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

Try to confirm that the current build is working for others, compare configs.

Have you tried using both alsa and oss in winecfg?

Offline

#9 2010-08-15 16:19:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

If you have 'Architecture = auto' in your pacman.conf, you should see only the packages for your architecture.

Thy picking a mirror from this list, 'pacman -Syy' and try again.

Offline

#10 2010-08-15 16:22:42

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

According to WineHQ input from an Arch user: http://appdb.winehq.org/objectManager.p … owAll=true
The current version of kernel and wine 1.2 should work. But they only focus on the login problem so that's why I posted here: to get some feedback relating to sound problems since it's more Arch related than wine/WoW related.

I tried both alsa and oss yes.

This is the only place I can get user's feedback about these issues (configs, whether it works for them with the curent versions, etc) so I am kinda stuck.

Offline

#11 2010-08-15 16:27:21

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

I have no issues with only seeing packages from my architecture, the Package DB at the frontpage should have ALL architectures anyway. The problem is the DB is wrong or the repos are outdated, check wine for e.g. on DB it does not even mention bin32-wine for the 64 bit version instead it's wine for x86_64 arquitecture.

Also that list also has outdated mirrors, I tested quite a few from there and they don't even have the new kernel version.

Edit: Ok, I checked manually through the links to check which repos are updated and they seem to be all ok. The thing is when I pick one in /etc/pacman.d/mirrorlist the repo is still outdated and not all the same I get form the link directly :\

Last edited by Grimn (2010-08-15 16:36:37)

Offline

#12 2010-08-15 16:46:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

I don't think it's possible that they have outdated kernel. Did you run 'pacman -Syy' to get a new packagelist from that mirror?

If you need more assistance with the outdated packages issue, please open a new thread.

Offline

#13 2010-08-15 16:56:06

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

Yup even after pacman -Syy the issue prevails, I opened a new thread like you suggested.
Until that issue is solved I think I should hold this thread since the new wine version might have this issue corrected.

Thanks again, you have been helpful.

Offline

#14 2010-08-15 17:21:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

Try to update your system and see if the error goes away.

Offline

#15 2010-08-15 17:21:32

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

Ok so wine 1.3, the new version doesn't seem to have the sound working (if I do the Test Sound on winecfg nothing happens).
However the game crashes now but it's prolly a nvidia driver issue because I'm getting this erorr in the console:

Error: API mismatch: the NVIDIA kernel module has version 256.35, but this NVIDIA driver component has version 256.44.

Do I need to unload the old module and add the new one manually?

Offline

#16 2010-08-15 17:23:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

I think you also need lib32-nvidia-utils. Rebooting will be simpler than removing old and loading new modules.

Offline

#17 2010-08-15 17:37:26

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

Ok, that problem is fixed but still no sound.
However I just remembered to do a simpler test with ALSA: aplay /user/share/sounds/KDE-Sys-Trash-Emptied.ogg and no sound is played.
So the problem, I guess, is that ALSA is using the internal sound card instead (probably because it's indexed as 0?) so it won't work on wine until ALSA itself uses the same card.
Sound systems however work perfectly fine using gstreamer engine, doesn't it also use ALSA?

Offline

#18 2010-08-15 17:44:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

From http://wiki.archlinux.org/index.php/Usi … _on_Arch64 :
For Alsa and OpenAL-Support you have to install lib32-alsa-lib and lib32-openal.

Offline

#19 2010-08-15 17:46:05

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

I have both installed

Offline

#20 2010-08-15 18:05:58

Grimn
Member
Registered: 2006-12-23
Posts: 136

Re: [Solved]Wine applications don't have sound

I feel a total newb today, I misread a wiki entry: Some modules do not support indexing options eg. snd-hda-intel. If you experience problems on on reboot edit /etc/modprobe.d/modprobe.conf to just have the modules.

And interpreted as 'it won't work with snd-hda-intel so don't bother adding to modprobe.conf'

On a better looking at the wiki page I saw my mistake and corrected the indexing of the cards, it now works in alsa.
But (there is always a but), I still haven't figure out how to have multiple applications using sound yet (e.g. wine + amarok). My sound card should have ahrdware mix so I don't think I need dmix as stated in the wiki.

Edit: Sorry nvm, I am getting deaf. Eveything works fine. thanks for the help smile

Last edited by Grimn (2010-08-15 18:10:13)

Offline

#21 2010-08-15 18:13:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Wine applications don't have sound

Have you read http://wiki.archlinux.org/index.php/All … nd_at_once ?
What are your sound settings in wine - Emulation?

Edit: OK, glad you got it working :-)

Last edited by karol (2010-08-15 18:13:37)

Offline

Board footer

Powered by FluxBB