Sorry, folks, but this is the only spot I know to post 'em

DIFF 1:

In pcm.c, pcm->buffer can be 0. Since pcm_direct.c calls the function snd_pcm_sw_params_get_silence_threshold() with value 0, the assert fires. Now it's quite possible that I'm getting this wrong, but if pcm->buffer_size can be zero, than this is an error. I was getting this assert when the Asterisk PBX package (www.asteriskpbx.com) tried to load both OSS and ALSA -- I think incorrectly, but that's another problem.

This diff works for me -- xine works, xmms works, play [sox] works, and asterisk no longer asserts -- but that might just mean that I'm courting some other trouble.


$ cvs diff pcm.c Index: pcm.c =================================================================== RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm.c,v retrieving revision 1.255 diff -r1.255 pcm.c 5476c5476 < assert(val < pcm->buffer_size); --- > assert(val <= pcm->buffer_size);



DIFF 2:

Alsamixer simply won't compile without being told to add the [n]curses library. However, the configure.in code that generated the "-lnucurses" for use by configure and then the Makefile was commented out for reasons unknown. Restoring that code lets me compile alsamixer.

$ cvs diff configure.in
Index: configure.in
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/configure.in,v
retrieving revision 1.61
diff -r1.61 configure.in
39,44c39,44
< #AC_CHECK_LIB(ncurses, initscr,
< # [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
< # AC_CHECK_LIB(curses, initscr,
< # [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
< # AC_MSG_ERROR(this packages requires a curses library))
< #])
---
> AC_CHECK_LIB(ncurses, initscr,
> [ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
> AC_CHECK_LIB(curses, initscr,
> [ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
> AC_MSG_ERROR(this packages requires a curses library))
> ])


If anyone has any questions, feel free to contact me.

--
 Moshe Yudkowsky * http://www.Disaggregate.com




------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to