[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Protux-devel] [Fwd: Re: [Alsa-devel] available sampling rate detect
From: |
Luciano Giordana |
Subject: |
Re: [Protux-devel] [Fwd: Re: [Alsa-devel] available sampling rate detection] |
Date: |
Tue, 11 Feb 2003 14:30:12 -0200 |
User-agent: |
KMail/1.4.3 |
I will check them, thanks
On Tuesday 11 February 2003 07:41 am, Martin Herren wrote:
> there seems to be lots of interesting functions at
> http://www.alsa-project.org/alsa-doc/alsa-lib/group___control.html
> for detecting all cards and interfaces... haven't had time to try it
> yet, but i will experiment with it as soos as i got some time.
>
> /Martin
>
> -------- Original Message --------
>
> On Tue, 2003-02-11 at 08:53, Martin Herren wrote:
> [..]
>
> > An additional question, what is the correct way to find out all existing
> > cards/buses on a system ? Currently we scan /proc/asound/card?/ for all
> > pcmX[cp]. Is there a better way to do it ?
>
> I think you case use a loop with snd_card_next
>
> from alsa-lib/src/control/card.c
> /**
> * \brief Try to determine the next card.
> * \param rcard pointer to card number
> * \result zero if success, otherwise a negative error code
> *
> * Tries to determine the next card from given card number.
> * If card number is -1, then the first available card is
> * returned. If the result card number is -1, no more cards
> * are available.
> */
> int snd_card_next(int *rcard)
--
Best Regards
--
Luciano Giordana - Musician - Certified Java/GNU C++ Developer - Free Software
Evangelist
Project Mustux - http://www.freesoftware.fsf.org/mustux
-- Once Palladium is up and running , I will become a hacker --