[SOLVED] only one application can use sound
[SOLVED] only one application can use sound
I realized that only one application can use sound, ie. VLC blocks mplayer or flash plugin and vice-versa. is there a way to make several applications use sound device?
Last edited by witek on 5. May 2012, 15:57, edited 1 time in total.
Re: only one application can use sound
That's because one of those applications is configured to use OSS. If you use ALSA for all applications, you won't have any problems like that.
Re: only one application can use sound
I set both VLC and SMplayer to use ALSA, and still the same: only one can use audio.
In another distro with pulseaudio many application can use audio simultaneously.
By the way, how to make flash plugin use ALSA?
In another distro with pulseaudio many application can use audio simultaneously.
By the way, how to make flash plugin use ALSA?
Re: only one application can use sound
As long as no application is configured to use the sound hardware directly (e.g. "hw:0,1").gapan wrote:If you use ALSA for all applications, you won't have any problems like that.
Re: only one application can use sound
Which audio output devices did you configure in these apps?witek wrote:I set both VLC and SMplayer to use ALSA, and still the same:
Should be default I guess.witek wrote:By the way, how to make flash plugin use ALSA?
Re: only one application can use sound
I configured ALSA and default device, however in the file .asoundrc I have something like this in order to have sound in flash at all. What can I change?:
Code: Select all
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Re: only one application can use sound
You have configured your ALSA default device to use your sound hardware directly and as most sound hardware it is not able to mix different signal sources. Therefore ALSA uses dmix (a software mixer) as default, so different sources can be played at the same time with every hardware.
Here is a example:(note: format or rate probably can be removed or have to be changed)
PS: no idea why your flash needs some ALSA extra config to work
Here is a example:
Code: Select all
pcm.!default {
type dmix
ipc_key 1001
slave {
pcm "hw:0,0" # for ICE1724's analog output
format S32_LE
period_size 1024
buffer_size 4096
rate 44100 # see cat /proc/asound/card0/pcm0p/sub0/hw_params
}
}
PS: no idea why your flash needs some ALSA extra config to work
Re: only one application can use sound
If there is more than one sound device, I find that ALSA sometimes detects them in a different order.
I have to use the same sort of ALSA config to get flash to stop trying to play sound through my webcam.
I have to use the same sort of ALSA config to get flash to stop trying to play sound through my webcam.
Re: only one application can use sound
Thanks!thenktor wrote:As long as no application is configured to use the sound hardware directly (e.g. "hw:0,1").gapan wrote:If you use ALSA for all applications, you won't have any problems like that.
I hated Skype because of being not able to listen to music while speaking with somebody. Now I'm able

Re: only one application can use sound
It's possible to define the order. Search the ALSA wiki how to do itaurlaent wrote:If there is more than one sound device, I find that ALSA sometimes detects them in a different order.
I have to use the same sort of ALSA config to get flash to stop trying to play sound through my webcam.
