Gentoo, ALSA built as module, no sound in wine (Wow)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
h2sammo
Level 2
Level 2
Posts: 32
Joined: Thu Apr 09, 2009 11:12 am

Gentoo, ALSA built as module, no sound in wine (Wow)

Post by h2sammo »

i have sound in KDE, etc, but no sound in Wow. i have both alsa and oss tabs checked in winecfg.

suggestions?

kernel 2.6.28-r4
wine 1.17
wow 3.06
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Gentoo, ALSA built as module, no sound in wine (Wow)

Post by vitamin »

h2sammo wrote:i have sound in KDE, etc, but no sound in Wow. i have both alsa and oss tabs checked in winecfg.
Use only one or the other.
Did you killed / removed any sound servers, like pulseaudio?
h2sammo
Level 2
Level 2
Posts: 32
Joined: Thu Apr 09, 2009 11:12 am

Post by h2sammo »

gentoo doesnt use pulseaudio i checked if it was installed. i dont think it is using any soudn derver.

i had tried with alsa checked only (even though to use vent i would need both enabled...right?!) and it did not work either.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

h2sammo wrote:it did not work either.
Then you have something else running that's using sound. Kill anything using /dev/snd/pcm*
h2sammo
Level 2
Level 2
Posts: 32
Joined: Thu Apr 09, 2009 11:12 am

Post by h2sammo »

how would i check for that?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

h2sammo wrote:how would i check for that?
lsof
h2sammo
Level 2
Level 2
Posts: 32
Joined: Thu Apr 09, 2009 11:12 am

Post by h2sammo »

Code: Select all

localhost bobby # lsof
bash: lsof: command not found
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

h2sammo wrote:

Code: Select all

localhost bobby # lsof
bash: lsof: command not found
You need to install it then.
John Drescher

Gentoo, ALSA built as module, no sound in wine (Wow)

Post by John Drescher »

On Thu, Apr 9, 2009 at 10:25 PM, h2sammo <[email protected]> wrote:
Code:
localhost bobby # lsof
bash: lsof: command not found

emerge -av lsof

John
h2sammo
Level 2
Level 2
Posts: 32
Joined: Thu Apr 09, 2009 11:12 am

Post by h2sammo »

i emerged it, gives a HUGE list.
i thinks its useless however because i dont run wow in KDE, i starts it as its own X server with xinit. i wouldnt have any of these processes running.
how should i proceed?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

h2sammo wrote:i had tried with alsa checked only (even though to use vent i would need both enabled...right?!)
No. Both ALSA and OSS can be considered big, independent systems to handle sound. You can't use both simultaneously or things would become a mess...

It's a bit of a hack, but you might try setting winecfg to OSS and then run your app like:
aoss wine appname.exe

aoss is a compatibility layer (?) in ALSA that receives OSS-like input and provides ALSA-like output. Or try using only OSS before that, though that might not work because a lot of modern distros stop providing OSS these days (it's pretty old).

I'm probably factually wrong here and there, but I hope you at least know why enabling both in Wine is not a good idea. :)
h2sammo
Level 2
Level 2
Posts: 32
Joined: Thu Apr 09, 2009 11:12 am

Post by h2sammo »

ok kde uses kmix as a mixer, i put PCM to max and now i have sound.
i cant use the mic though, i have to figure out how to test the mic, any idea
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Wait, so the only reason you had no sound is because PCM was set to 0? That's... well, a lot simpler than what the problem was thought to be.

I don't think microphone input works yet in Wine, but then again I'm not the person who can assure you this as my mic will only work in Linux when I use very specific mixer settings. Try testing if it works in Linux before Wine though.
Locked