[Alsa-devel] Select call with alsa

2004-01-07 Thread Alex Lau
I had done some search on the internet about using select(2) with alsa and found the function snd_pcm_file_descriptor( *snd_pcm_handle_t). However when I try to test it with a simple program, I got compliation error of fundefined reference. I also try to lokk it up in the library documentation bu

Re: [Alsa-devel] ALSA API

2004-01-04 Thread Alex Lau
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.) Thanks for your help, I think I need to go back and check my alsa installation. Strange enough though, my xine palyer works fine and I have all

Re: [Alsa-devel] ALSA API

2004-01-04 Thread Alex Lau
on, but still get an error -2 (No such file or directory) On Sun, Jan 04, 2004 at 09:19:16AM -0800, Alex Lau wrote: > 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'

[Alsa-devel] ALSA API

2004-01-04 Thread Alex Lau
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_o