From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cournapeau David Subject: Re: Question regarding period/buffer and error handling Date: Mon, 31 May 2004 10:04:38 +0900 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <40BA84A6.30406@atr.jp> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: ALSA LIST List-Id: alsa-devel@alsa-project.org Clemens Ladisch wrote: >Cournapeau David wrote: > > >> My second problem is related to snd_card_next: If the card value >>returned by snd_card_next is different from -1, does that always mean >>than a alsa audio device is present on the system ? >> >> > >It means that same kind of device with an ALSA driver is present. >This does not mean that you'll be able to play PCM data to it. And >there may be software devices available. > > > >>Is it the best method to probe a soundcard with alsa support? >> >> > >snd_card_next() and snd_ctl_pcm_next_device() will give you a list of >hardware devices only. > >Usually, you should use the device named "default" and let the user >allow to specify another device name. > > > Ok, that's what I thought reading the different sources I checked, concerning the device name. But I am still a bit confused how to probe a soundcard to play a pcm stream to it: what should I do after having found an hardware device with snd_card_next ? Is there always a "default" name ? Or is it user dependant ? cheers, David ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click