<URL: http://bugs.freeciv.org/Ticket/Display.html?id=33793 >
S2_0 does not compile without --disable-alsa with gcc 4. Or maybe
problem can be in my alsa version? Anyway, attached patch fixes this.
- ML
diff -Nurd -X.diff_ignore freeciv/client/audio_alsa.c freeciv/client/audio_alsa.c
--- freeciv/client/audio_alsa.c 2007-01-13 00:55:34.000000000 +0200
+++ freeciv/client/audio_alsa.c 2007-01-16 11:32:01.000000000 +0200
@@ -26,7 +26,7 @@
static snd_pcm_t *sound_handle = NULL;
static snd_async_handler_t *ah;
-static snd_pcm_sframes_t period_size;
+static snd_pcm_uframes_t period_size;
static AFfilehandle file_handle = AF_NULL_FILEHANDLE;
static double file_rate;
@@ -131,8 +131,9 @@
(unsigned) file_rate, rrate);
}
snd_pcm_hw_params_set_period_time_near(sound_handle, hwparams,
- &period_time, &rrate);
- if (snd_pcm_hw_params_get_period_size(hwparams, &period_size, &rrate)
+ &period_time, (int *) &rrate);
+ if (snd_pcm_hw_params_get_period_size(hwparams, &period_size,
+ (int *) &rrate)
< 0) {
return -1;
}
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev