* snd_device_name_hint: Inconsistent output
@ 2012-11-15 0:27 Peter Grasch
0 siblings, 0 replies; only message in thread
From: Peter Grasch @ 2012-11-15 0:27 UTC (permalink / raw)
To: alsa-devel
Hi!
Today, I noticed that some devices (specifically, the "pulse" device,
but there might be others as well) do not show up in a call to
snd_device_name_hint when it is called for the first time within an
application.
I've managed to reproduce the problem on three different systems:
Get the source of a current version of aplay, compile it, run aplay -L
and store the output.
Then add another call to snd_device_name_hint in pcm_list to make it
look like this (leaking memory, but it doesn't matter for this
demonstration):
315 static void pcm_list(void)
316 {
317 void **hints, **n;
318 char *name, *descr, *descr1, *io;
319 const char *filter;
320
321 snd_device_name_hint(-1, "pcm", &hints);
322 if (snd_device_name_hint(-1, "pcm", &hints) < 0)
323 return;
Compile and run this version of aplay and again store the output of
"aplay -L".
For me, the two outputs differ.
Please net me know how I can help to resolve this issue. Thanks.
Best regards,
Peter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-15 0:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-15 0:27 snd_device_name_hint: Inconsistent output Peter Grasch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox