[SOLVED] only one application can use sound

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: only one application can use sound

Post by witek »

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
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

Re: only one application can use sound

Post by maspai »

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
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: [SOLVED] only one application can use sound

Post by thenktor »

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)
geBIERt (German beer blog)
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

Re: [SOLVED] only one application can use sound

Post by maspai »

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
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: [SOLVED] only one application can use sound

Post by gapan »

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
Image
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

Re: [SOLVED] only one application can use sound

Post by maspai »

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.
Post Reply