# HG changeset patch # User cladisch # Date 1141034787 0 # Node ID 9ca95aee84495ab0e92d971fbdacf3c633e39738 # Parent 351c4f61140fa7237ebd20b135c07052708a1e1e Show the actual ALSA version instead of the version mplayer was compiled with, if possible. diff -r 351c4f61140f -r 9ca95aee8449 libao2/ao_alsa.c --- a/libao2/ao_alsa.c Sun Feb 26 12:39:17 2006 +0000 +++ b/libao2/ao_alsa.c Mon Feb 27 10:06:27 2006 +0000 @@ -270,7 +270,11 @@ mp_msg(MSGT_AO,MSGL_V,"alsa-init: requested format: %d Hz, %d channels, %x\n", rate_hz, channels, format); alsa_handler = NULL; +#if SND_LIB_VERSION >= 0x010005 + mp_msg(MSGT_AO,MSGL_V,"alsa-init: using ALSA %s\n", snd_asoundlib_version()); +#else mp_msg(MSGT_AO,MSGL_V,"alsa-init: compiled for ALSA-%s\n", SND_LIB_VERSION_STR); +#endif if ((err = snd_card_next(&cards)) < 0 || cards < 0) {