Re: [AD] [BUG?] X11 Windowed driver delay...

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> And another :) This is supposed to let ALSA pick working HW settings in
> case it doesn't like the supplied ones..

It doesn't compile in strictwarn mode for me:

src/unix/alsa9.c:392: warning: int format, snd_pcm_uframes_t arg (arg 2)
make: *** [obj/unix/module/alsa9.o] Error 1

I need the attached patch.  Is it OK?

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/src/unix/alsa9.c	Mon Mar  1 10:13:55 2004
+++ allegro/src/unix/alsa9.c	Mon Mar  1 13:13:30 2004
@@ -389,7 +389,7 @@
    ALSA9_CHECK(snd_pcm_hw_params_get_period_size(hwparams, &alsa_bufsize, NULL));
    ALSA9_CHECK(snd_pcm_hw_params_get_periods(hwparams, &alsa_fragments, NULL));
 
-   TRACE ("ALSA 9 driver: alsa_bufsize = %i, alsa_fragments = %i\n", alsa_bufsize, alsa_fragments);
+   TRACE ("ALSA 9 driver: alsa_bufsize = %ld, alsa_fragments = %d\n", alsa_bufsize, alsa_fragments);
 
    ALSA9_CHECK(snd_pcm_sw_params_current(pcm_handle, swparams));
    ALSA9_CHECK(snd_pcm_sw_params_set_start_threshold(pcm_handle, swparams, alsa_bufsize));


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/