No sound card available to programs running under wine.

Bug #421218 reported by Stef Walter
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wine (Ubuntu)
Fix Released
Undecided
Scott Ritchie

Bug Description

After upgrading to karmic, audio no longer works in programs running under wine. Audio works perfectly in other applications, and used to run for wine applications under jaunty.

I've had several windows programs running under wine programs say: "No soundcard detected"

To duplicate, I can go into the 'winecfg' application, and click on the Audio tab. No matter what set of drivers I select, when "Test Sound" is clicked, I get this message: "Audio test failed!"

The following is output when winecfg is run:

ALSA lib ../../src/conf.c:2700:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib ../../../src/control/control.c:902:(snd_ctl_open_noupdate) Invalid CTL hw:0
ALSA lib ../../../src/pcm/pcm_dmix.c:1008:(snd_pcm_dmix_open) unable to open slave

---------------------------------------------------

Description: Ubuntu karmic (development branch)
Release: 9.10

wine:
  Installed: 1.0.1-0ubuntu6
  Candidate: 1.0.1-0ubuntu6
  Version table:
 *** 1.0.1-0ubuntu6 0
        500 http://archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Scott Ritchie (scottritchie) wrote :

Thank you for reporting. Are you on i386 or amd64?

Changed in wine (Ubuntu):
assignee: nobody → Scott Ritchie (scottritchie)
Revision history for this message
Stef Walter (stefw) wrote :

I'm using amd64. Here's the full uname details:

Linux stef 2.6.31-8-generic #28-Ubuntu SMP Thu Aug 27 14:42:57 UTC 2009 x86_64 GNU/Linux

Revision history for this message
Susan Cragin (susancragin) wrote :

Stef... I'm just a wine user, I'm not a developer or affiliated with Ubuntu, and I also now have problems with no sound on programs running under wine.
But wine is known not to work well with pulseaudio, and I was wondering if you had tried the following and, if so, what your experience was.

in terminal:
sudo nano /etc/pulse/client.conf
uncomment "autospawn = yes" and change yes to no
reboot
in terminal:
killall pulseaudio
winecfg
set audio driver to OSS only.
Look under alsa and oss and see if each recognizes mixers. If so, is yours listed?
Then try your program and see if it works.

Even without pulseaudio, alsa does not work for me right now, or it works badly. OSS works some of the time. I just thought that, if your program does work with this set of instructions, that is useful information.

Revision history for this message
Stef Walter (stefw) wrote :

Thanks for responding. Recent updates to karmic have fixed this problem for me. I can't identify which one exactly, but things started working about a week ago. Thanks!

Revision history for this message
Andreas Raster (rakete) wrote :

The latest karmic upgrades made this bug appear on my system. I have a Creative Labs Live! Card (EMU10K1) that used to work fine under wine. I tried a completely new wine configuration but neither ALSA or OSS work. I tried the 'Test Sound' button under winecfg as well as actually starting a few apps.

lazor@capcom ~> uname -a
Linux capcom 2.6.31-10-generic #35-Ubuntu SMP Tue Sep 22 17:33:14 UTC 2009 x86_64 GNU/Linux

lazor@capcom ~> lspci
[...]
06:01.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
06:01.1 Input device controller: Creative Labs SB Live! Game Port (rev 07)

Revision history for this message
Andreas Raster (rakete) wrote :

False alarm. I remembered that I removed pulseaudio a while ago to fix some sound issues, and thought I might as well try to install it again to see if that helps. It didn't, but I discovered the package padevchooser along the way which showed me that sound infact worked, but I didn't hear it for some reason. I had to select another device to make everything work.

Revision history for this message
Cub (tails22) wrote :

I'm using the default install of Karmic, sound does not work with Wine- it works fine with all other programs. Sound looks like it should work- I click the test sound, nothing happens, no errors, nothing. Sound with Wine is pretty important, I hope this bug gets fixed soon. So far I have yet to find a workaround. BTW, I've made sure I'm using the latest updates, no help.

Revision history for this message
Peter Mawhorter (pmawhorter) wrote :

I had what may be a similar problem, but found a solution: in winecfg, I noticed that the esd driver option only appeared if pulseaudio was running. So I set the output to go to esd in winecfg. The "test" button in winecfg still failed, but sound worked for me in Steam (TF2 specifically) under Wine. I upgraded to karmic today, and things broke, so I cleared out all of my old pulse settings before doing this, which may have had some effect, but try using esd for winecfg despite the test failure message.

Revision history for this message
Aigars Mahinovs (aigarius) wrote :

Switching to wine-pulseaudio would solve this bug.

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for posting this bug.

Does this issue occur in newest WINE?

Changed in wine (Ubuntu):
status: New → Incomplete
Revision history for this message
Stef Walter (stefw) wrote :

This works for me now.

Changed in wine (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.