[alsa-devel] How to cont the sound cards?
tiwai at suse.de
Fri Nov 23 18:19:53 CET 2007
At Mon, 19 Nov 2007 09:12:51 +0200,
Cosmin Humeniuc wrote:
> I am trying to develop an application using the ALSA library. I read
> in a book about the snd_cards function, but it doesn't seem to be
> defined anywhere. (The book is rather old, though, it talks about the
> 0.5.x series).
> The compiler doesn't complain, but the linker gives me an "undefined
> reference to `snd_cards'" error. I assume this function is deprecated,
> but what can I use instead?
Oh that myth. I myself already forgot about that function :)
On ALSA 1.x, there is no corresponding function. You'll need to
loop and check the presence of each card.
More information about the Alsa-devel