All of lore.kernel.org
 help / color / mirror / Atom feed
* plughw vs default / per-application volume changer
@ 2012-08-06 11:41 antony k
  2012-08-09 13:00 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: antony k @ 2012-08-06 11:41 UTC (permalink / raw)
  To: alsa-devel

Hello,
I am new to ALSA and I cant figure out 2 things.

a) if and why should I prefer the "plughw:0,0" over the "default" device
name.
I am developing a simple audio player which is based on the latter.
I made this choice because when I was using plughw:0,0 with other audio
programs(flash player,vlc) open in the background I would get the "Device
is busy" error code.
With default, it's fine.

b) can I have an application specific volume changer? So far I have managed
to tweak the master volume of the "default" device which has a global
effect. Im guessing a) and b) are connected.

Thanks for your time

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: plughw vs default / per-application volume changer
  2012-08-06 11:41 plughw vs default / per-application volume changer antony k
@ 2012-08-09 13:00 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2012-08-09 13:00 UTC (permalink / raw)
  To: antony k; +Cc: alsa-devel

antony k wrote:
> a) if and why should I prefer the "plughw:0,0" over the "default" device
> name.
> I am developing a simple audio player which is based on the latter.
> I made this choice because when I was using plughw:0,0 with other audio
> programs(flash player,vlc) open in the background I would get the "Device
> is busy" error code.
> With default, it's fine.

You have answered your question.

The default device name should be "default".

> b) can I have an application specific volume changer?

Very few sound devices support this in hardware.
Adjust the sound data in your program, or better use PulseAudio.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-09 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-06 11:41 plughw vs default / per-application volume changer antony k
2012-08-09 13:00 ` Clemens Ladisch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.