Skip to contentSkip to conversation

ALSA API

DISCUSSION Alex Lau 2 participants 2 messages Jan 5, 2004

lore
Share & tools
lore

Alex Lau

author
#0 lore raw

The sample in the tutorial use command line argument, so I try to follow the sine wave generation code in this url
http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html

it use
char *device = "hw:0,0";
....

I try to pass the string "default" to the function, but still get an error -2 (No such file or directory)

Quoted 15 lines · Alex Lau
Quoted 5 lines

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";

Shouldn't the tutorial be using "default", if that's what programs that don't care should be using? (The arguments used in tutorials are what most applications are going to use.)

--
Glenn Maynard

Quoted 9 lines

-------------------------------------------------------
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

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus&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

#1 lore raw
Quoted 2 lines · Alex Lau

I try to pass the string "default" to the function, but still get an error -2 (No such file or directory)

Are you sure you've tested an existing ALSA application, to make sure your installation even works? (That tends to happen if /dev/snd/* doesn't exist.)

Signature · 8 lines
Glenn Maynard


-------------------------------------------------------
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