Erik Inge Bolsų wrote: > I'm having trouble doing snd_pcm_hw_params_can_pause() on a certain pcm, > even though it has already (hopefully?) been fixed to one config by > snd_pcm_hw_params()... snd_pcm_hw_params has been called, at least. How > can I check? > > fileja { > type file > file /tmp/alsa > slave.pcm null > } > > xine: pcm.c:2604: snd_pcm_hw_params_can_pause: Assertion `params && params->info != > ~0U' failed.
Apparently, the null pcm doesn't initialize params->info. The patch below should help. HTH Clemens -- Index: alsa-lib/src/pcm/pcm_null.c =================================================================== RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_null.c,v retrieving revision 1.50 diff -u -r1.50 pcm_null.c --- alsa-lib/src/pcm/pcm_null.c 17 Mar 2004 11:48:15 -0000 1.50 +++ alsa-lib/src/pcm/pcm_null.c 30 Apr 2004 09:38:09 -0000 @@ -276,6 +276,9 @@ { int err = snd_pcm_hw_refine_soft(pcm, params); params->fifo_size = 0; + params->info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | + SNDRV_PCM_INFO_INTERLEAVED | + SNDRV_PCM_INFO_RESUME | SNDRV_PCM_INFO_PAUSE; return err; } ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel