I been doing some reading on using the alsa API, however, I cannot find much information on it. It also look like that the different versions have different argument for the same API.

For example, the snd_pcm_open( )

some use snd_pcm_open( &handle, card, device, stream, mode)
some use snd_pcm_open(&handle, device, stream, mode)

I try to use the second one but do not know the nameing convention for the device. I am using 1.0.0rc2.

I try to run the minimal playback program from the tutorial found in the alsa web site,

snd_pcm_t  *handle;
char  *device = "hw:0,0";
err = snd_pcm_open(&handle, device, SND_PCM_STREAM_PLAYBACK, 0);
..........


the program compile ok but when I try to run it I got a err -2 (no such file or directory)


if I chang the to
char *device = "front";

I got

ALSA lib pcm.c:1812:(snd_pcm_open_conf) Invalid type for PCM front definition (id: front, value: cards.pcm.front)
Err is -22


Can anybody tell me what is the naming convention for the devics in alsa?
Can anybody tell me where I can find some more descriptive information for the alsa.conf file?



Thanks in advance.


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to