On Wed, 10 Mar 2004, Niels Christian ?rgaard wrote: > Hey .... > > This is the nth day I'm stuck reading the ALSA-documentation over and > over again, and I'm at a loss figuring out whats wrong. > > Basically, I have a running thread capturing data from an ALSA-device, > and within useconds I get: "samptest: pcm.c:5889: snd_pcm_mmap_commit: > Assertion `frames <= snd_pcm_mmap_avail(pcm)' failed." (samptest is the > name of my executable)
Can you run gdb with your code and send me backtrace? > The reason for me being so confused is that this occures at the call > "snd_pcm_readi(snd_pcm_t *, void *, snd_pcm_uframes_t )", which for > starters ain't mmap :) I use "snd_pcm_delay(snd_pcm_t *, We use almost always mmap even for r/w access (which is emulated in alsa-lib). Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel