[Pkg-alsa-devel] Re: Trying to test dosbox with ALSA incompatibility, need help :)

Peter Veenstra H.P.Veenstra@student.rug.nl
Sat, 24 Jan 2004 14:28:18 +0100


--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 24, 2004 at 04:58:04AM -0500, David B Harris wrote:
> Hey there. The Debian ALSA team (of which I'm a part) is going to be
> uploading a new version of libasound2 to unstable soon, and it includes
> a source incompatibility with previous versions.
>=20
> The short of it is that an API change was introduced a while ago, but
> compatibility code was in place and the default was to use the old API.
> However, with the most recent release, that's changed; now you need to
> add the following defines before you include <asound.h> or
> <alsa/asoundlib.h> (or any header with prototypes the functions in
> question):
>=20
> #define ALSA_PCM_OLD_HW_PARAMS_API
> #define ALSA_PCM_OLD_SW_PARAMS_API
>=20
> We're filing pre-emptive bugs on packages which are fixed by adding
> those defines, but I wasn't able to really figure out why yours failed
> to build. I had hoped you could lend a hand - attached is a log of the
> build failure.
>=20
> Thanks in advance for any help.

As package manager and one of the authors of dosbox, I've been confronted
with this problem multiple times allready. In the CVS of dosbox=20
file dosbox/src/gui/midi_alsa.h

I changed the wrong define to this: (line 32)
#if ((SND_LIB_MINOR >=3D 6) && (SND_LIB_MAJOR =3D=3D 0)) || (SND_LIB_MAJOR =
>=3D 1)

I'm not aware of the 2 defines mentioned by you:
#define ALSA_PCM_OLD_HW_PARAMS_API
#define ALSA_PCM_OLD_SW_PARAMS_API

I'll include them as well.

Hope this helps,
Peter Veenstra

:: Not on list. ::

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAEnLyAjfAeLEqiIERAk1MAJ0XZcEMnmMBl+ShbbrWNhLGWhdAnACfWow5
LHNrKlJxGPF9SoYsJHWUfgU=
=CMrE
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--