On Fri, 2001-11-30 at 02:06, Alexander Ehlert wrote: > Hi, > > I have the following code in glame's alsa_audio_out plugin: > > char *pcm_name="plughw:0,0"; > ... > err = snd_pcm_open(&handle, pcm_name, SND_PCM_STREAM_PLAYBACK, > SND_PCM_NONBLOCK); > if (err<0) > FILTER_ERROR_RETURN("couldn't open audio device"); > /* set back to blocking io */ > snd_pcm_nonblock(handle, 0); > > Now this works with a lot of cards, but strangely it doesn't work > with the SB Live. I always get err=-22. But what the heck is > -22 ? I grepped through the include files, but I couldn't find > anything. Any ideas whats going wrong? > > BTW: The Alsa Lib has a strange way of error handling. > Either it just quits your whole application with asserts or if > you turn the asserts off it segfaults. > > Cheers, Alex > -- >
It kind of slipped my mind, but I just fixed the ALSA 0.9.0betas related problems with GLAME just yesterday. The problem with input dieing after an overrun as well as cleaning up some of the parameter setting code. I guess I didn't mention it because I was in the middle of adding a full duplex plugin (actually just another routine in the alsa driver file). I need to make a patch for the changes I made, which I will do as soon as possible. Right now I should go to sleep though. I have an SB Live! and it works fine BTW. If you want to figure out what an error is use snd_strerror. -- Josh Green Smurf Sound Font Editor (http://smurf.sourceforge.net) _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel