You are not logged in.

#1 2012-03-12 09:36:04

Viruser
Member
Registered: 2012-02-29
Posts: 15

[SOLVED] Problem with dmix

Hello
I'm new to linux
So i want to have software mixing using Dmix but i don't really know how do i setup my .asoundrc
Alsa works right now but i can have 2 applications sharing sounds with each other.
I have read some wikis but they are too advanced for me to figure out what to do smile

Here is my lsmod | grep snd:

snd_hda_codec_hdmi     24121  1 
snd_hda_codec_realtek   195674  1 
snd_hda_intel          23375  4 
snd_hda_codec          89160  3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_hwdep               6389  1 snd_hda_codec
snd_pcm                74780  3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc          7153  2 snd_pcm,snd_hda_intel
snd_timer              19544  1 snd_pcm
snd                    59214  15 snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
soundcore               6210  1 snd

and aplay -l:

 **** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

.asoundrc is empty -.-
So, how can i enable Dmix to have software mixing? and how can i provide additional information if needed.
Thanks

Last edited by Viruser (2012-03-12 12:09:55)

Offline

#2 2012-03-12 10:30:37

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: [SOLVED] Problem with dmix

I can't help you with your question (as I did not use dmix for many years), but an option which should allow software mixing out of the box is to use pulseaudio. If you use kde or gnome this should just work (after installing all the pulse-related packages), if you don't use a DE you might need to set up some more things first.

Offline

#3 2012-03-12 10:33:20

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Problem with dmix

dmix works out of the box, no configuration necessary. It's possible that by trying to configure stuff instead of just letting things be you screwed something up. First thing to do - remove .asoundrc, /etc/asound.conf or any other such file.

Offline

#4 2012-03-12 11:28:14

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Problem with dmix

Gusar wrote:

dmix works out of the box, no configuration necessary.

Only for 2 speakers. To prove it, run these commands simultaneously, starting with the first one:
#     speaker-test -c 2 -D default
#     speaker-test -c 6 -D surround51 -t wav

See my ~/.asoundrc for a working solution.

Offline

#5 2012-03-12 12:03:26

Viruser
Member
Registered: 2012-02-29
Posts: 15

Re: [SOLVED] Problem with dmix

So i have installed pulseaudio
It does work
But when i try starting wine, I lose audio for other programs , Or if i open other audio programs first, Wine has no sound
How can i fix that?

Edit: Fixed that by installing pulseaudio-alsa package

Problem solved
Thank you all

Last edited by Viruser (2012-03-12 12:11:00)

Offline

Board footer

Powered by FluxBB