* snd_pcm_open device names
@ 2008-03-05 23:33 Reiner
2008-03-06 0:13 ` Eliot Blennerhassett
0 siblings, 1 reply; 4+ messages in thread
From: Reiner @ 2008-03-05 23:33 UTC (permalink / raw)
To: alsa-devel
with
snd_pcm_open (handle, "default", SND_PCM_STREAM_PLAYBACK, 0)
I can open a device twice
with
snd_pcm_open (handle, "plughw:0,0", SND_PCM_STREAM_PLAYBACK, 0)
the 2. call fails with error -16.
The docu says:
The default device is equal to plug plugin with hw plugin as slave.
????
Reiner
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snd_pcm_open device names
2008-03-05 23:33 snd_pcm_open device names Reiner
@ 2008-03-06 0:13 ` Eliot Blennerhassett
2008-03-06 18:34 ` Reiner
0 siblings, 1 reply; 4+ messages in thread
From: Eliot Blennerhassett @ 2008-03-06 0:13 UTC (permalink / raw)
To: alsa-devel
On Thursday 06 March 2008 12:33:54 Reiner wrote:
> with
> snd_pcm_open (handle, "default", SND_PCM_STREAM_PLAYBACK, 0)
> I can open a device twice
> with
> snd_pcm_open (handle, "plughw:0,0", SND_PCM_STREAM_PLAYBACK, 0)
> the 2. call fails with error -16.
>
> The docu says:
> The default device is equal to plug plugin with hw plugin as slave.
Probably the doc is in error. The default device these days is usually asym
(dmix+dsnoop) which allows the multiple opens.
--
Eliot
www.audioscience.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snd_pcm_open device names
2008-03-06 0:13 ` Eliot Blennerhassett
@ 2008-03-06 18:34 ` Reiner
2008-03-06 18:36 ` Lee Revell
0 siblings, 1 reply; 4+ messages in thread
From: Reiner @ 2008-03-06 18:34 UTC (permalink / raw)
To: alsa-devel
Thanks! But if I try "asym" open fails, where can I see what "default"
is? There is no ~/.asoundrc and in /etc there is only asound.state.
By the way I'am looking for a function to adjust the volume of the
stream, any idea
Thanks
Reiner
Eliot Blennerhassett schrieb:
> On Thursday 06 March 2008 12:33:54 Reiner wrote:
>> with
>> snd_pcm_open (handle, "default", SND_PCM_STREAM_PLAYBACK, 0)
>> I can open a device twice
>> with
>> snd_pcm_open (handle, "plughw:0,0", SND_PCM_STREAM_PLAYBACK, 0)
>> the 2. call fails with error -16.
>>
>> The docu says:
>> The default device is equal to plug plugin with hw plugin as slave.
>
> Probably the doc is in error. The default device these days is usually asym
> (dmix+dsnoop) which allows the multiple opens.
>
> --
> Eliot
> www.audioscience.com
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snd_pcm_open device names
2008-03-06 18:34 ` Reiner
@ 2008-03-06 18:36 ` Lee Revell
0 siblings, 0 replies; 4+ messages in thread
From: Lee Revell @ 2008-03-06 18:36 UTC (permalink / raw)
To: Reiner; +Cc: alsa-devel
On Thu, Mar 6, 2008 at 1:34 PM, Reiner <reiner1210@googlemail.com> wrote:
> Thanks! But if I try "asym" open fails, where can I see what "default"
> is? There is no ~/.asoundrc and in /etc there is only asound.state.
> By the way I'am looking for a function to adjust the volume of the
> stream, any idea
There is no per stream volume control in ALSA. This should be handled
by the application, or a sound server like Pulseaudio.
Lee
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-06 18:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05 23:33 snd_pcm_open device names Reiner
2008-03-06 0:13 ` Eliot Blennerhassett
2008-03-06 18:34 ` Reiner
2008-03-06 18:36 ` Lee Revell
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.