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
--
Familiarity breeds contempt -- and children.
-- Mark Twain
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel