*** xmcd-3.3.2/cdda_d/wr_alsa.c Thu Apr 8 16:15:58 2004 --- xmcd-3.3.2.fix/cdda_d/wr_alsa.c Sun May 2 18:40:26 2004 *************** *** 24,30 **** * (For ALSA 0.9.x and later only) */ #ifndef lint ! static char *_wr_alsa_c_ident_ = "@(#)wr_alsa.c 7.63 04/03/24"; #endif #include "common_d/appenv.h" --- 24,30 ---- * (For ALSA 0.9.x and later only) */ #ifndef lint ! static char *_wr_alsa_c_ident_ = "@(#)wr_alsa.c 7.64 04/05/02"; #endif #include "common_d/appenv.h" *************** *** 806,811 **** --- 806,814 ---- return FALSE; } + #if (SND_LIB_MAJOR < 1) + xferalign = snd_pcm_sw_params_get_xfer_align(swparams); + #else if ((ret = snd_pcm_sw_params_get_xfer_align(swparams, &xferalign)) < 0) { snd_pcm_sw_params_free(swparams); *************** *** 816,821 **** --- 819,825 ---- DBGPRN(DBG_SND)(errfp, "%s\n", alsa_wcd->i->msgbuf); return FALSE; } + #endif startthresh = (bufsize / xferalign) * xferalign; if ((ret = snd_pcm_sw_params_set_start_threshold(alsa_pcm, swparams,