diff -ur ecasound-2.2.3/libecasound/plugins/audioio_alsa.cpp ecasound-2.2.3-fixed/libecasound/plugins/audioio_alsa.cpp --- ecasound-2.2.3/libecasound/plugins/audioio_alsa.cpp 2003-04-11 11:58:46.000000000 -0500 +++ ecasound-2.2.3-fixed/libecasound/plugins/audioio_alsa.cpp 2004-01-22 03:09:57.000000000 -0600 @@ -26,6 +26,11 @@ /* note! kaiv, note to myself: you saved the hwparams change 'add_hwparams.patch' :) */ +#include +#if SND_LIB_MAJOR==1 +#define ALSA_PCM_OLD_HW_PARAMS_API +#define ALSA_PCM_NEW_HW_PARAMS_API +#endif #include #include diff -ur ecasound-2.2.3/libecasound/plugins/audioio_alsa.h ecasound-2.2.3-fixed/libecasound/plugins/audioio_alsa.h --- ecasound-2.2.3/libecasound/plugins/audioio_alsa.h 2003-03-03 17:52:31.000000000 -0600 +++ ecasound-2.2.3-fixed/libecasound/plugins/audioio_alsa.h 2004-01-22 03:10:19.000000000 -0600 @@ -14,6 +14,11 @@ #include "samplebuffer.h" #include "audioio-device.h" +#include +# if SND_LIB_MAJOR==1 +#define ALSA_PCM_OLD_HW_PARAMS_API +#define ALSA_PCM_NEW_HW_PARAMS_API +# endif #include using namespace std; diff -ur ecasound-2.2.3/libecasound/plugins/audioio_alsa_named.cpp ecasound-2.2.3-fixed/libecasound/plugins/audioio_alsa_named.cpp --- ecasound-2.2.3/libecasound/plugins/audioio_alsa_named.cpp 2002-10-15 17:15:03.000000000 -0500 +++ ecasound-2.2.3-fixed/libecasound/plugins/audioio_alsa_named.cpp 2004-01-22 03:10:41.000000000 -0600 @@ -22,6 +22,11 @@ #include #include +#include +#if SND_LIB_MAJOR==1 +#define ALSA_PCM_OLD_HW_PARAMS_API +#define ALSA_PCM_NEW_HW_PARAMS_API +#endif #include #include "audioio_alsa_named.h"