[SOLVED] only one application can use sound

You have a problem with Salix? Post here and we'll do what we can to help.

Re: only one application can use sound

Postby witek » 5. May 2012, 15:56

I solved the issue by filling my .asoundrc with this below code from ALSA documentation
http://www.alsa-project.org/main/index.php/Asoundrc
Now I can use skype, flash and media player simultaneously.

Code: Select all
pcm.!default {
   type plug
   slave.pcm "dmixer"
}

pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
      pcm "hw:1,0"
      period_time 0
      period_size 1024
      buffer_size 4096
      rate 44100
   }
   bindings {
      0 0
      1 1
   }
}

ctl.dmixer {
   type hw
   card 0
}
User avatar
witek
 
Posts: 207
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: only one application can use sound

Postby maspai » 19. Jul 2012, 09:10

thenktor wrote:
gapan wrote:If you use ALSA for all applications, you won't have any problems like that.

As long as no application is configured to use the sound hardware directly (e.g. "hw:0,1").

i'm using acer aspire one 522 netbook, and vlc configuration only shows list of hardware for sound device:
    Default
    HD-Audio Generic: HDMI 0 (hw:0,3)
    HDA ATI SB: CONEXANT Analog (hw:1,0)
    HDA ATI SB: Conexant Digital (hw:1,1)
. i think the right one is the 3rd, which is pointed to hardware.
sorry for my noob-ness guys, i'm new in linux and salix.
User avatar
maspai
 
Posts: 25
Joined: 4. Jul 2012, 11:13

Re: [SOLVED] only one application can use sound

Postby thenktor » 19. Jul 2012, 09:31

Obviously you have 3 audio outputs: analogue, digital & HDMI. So you can configure VLC to use one of these outputs, e.g. chose the HDMI output if you connect your notebook to a TV via HDMI. Then your TV plays the sound.
Image
burnCDDA (burns audio CDs)
last.fm (my last.fm profile)
User avatar
thenktor
Salix Wizard
 
Posts: 2393
Joined: 6. Jun 2009, 14:47
Location: Franconia

Re: [SOLVED] only one application can use sound

Postby maspai » 19. Jul 2012, 12:27

thenktor wrote:Obviously you have 3 audio outputs: analogue, digital & HDMI. So you can configure VLC to use one of these outputs, e.g. chose the HDMI output if you connect your notebook to a TV via HDMI. Then your TV plays the sound.


the same problem, audacious and vlc can't play together. device list of audacious shows the same like vlc. i choose analogue because only that works.
sorry for my noob-ness guys, i'm new in linux and salix.
User avatar
maspai
 
Posts: 25
Joined: 4. Jul 2012, 11:13

Re: [SOLVED] only one application can use sound

Postby gapan » 19. Jul 2012, 12:38

Obviously analog is the only one that works because you don't have any hardware with a digital input to output to. You'll have to make sure that both audacious and vlc are set to use alsa.
Image
User avatar
gapan
Salix Wizard
 
Posts: 3481
Joined: 6. Jun 2009, 17:40

Re: [SOLVED] only one application can use sound

Postby maspai » 20. Jul 2012, 03:16

gapan wrote:Obviously analog is the only one that works because you don't have any hardware with a digital input to output to. You'll have to make sure that both audacious and vlc are set to use alsa.


i did. the device list comes up only when i choose alsa. if i choose other, eg. default, no list appears.
once i chose pulseaudio in another distro - i forget what distro - and it worked. but thenktor said, it's supposed to work with alsa. therefore, i'm curious.
sorry for my noob-ness guys, i'm new in linux and salix.
User avatar
maspai
 
Posts: 25
Joined: 4. Jul 2012, 11:13

Previous

Return to Problems