[MPlayer-dev-eng] ALSA - migration to 1.0 API

James Courtier-Dutton James at superbug.demon.co.uk
Wed Jan 21 16:42:26 CET 2004


Jindrich Makovicka wrote:
> Hi,
> 
> I have ported AO module for ALSA to the newer 1.0 API, patch for current 
> CVS is available at
> 
> http://kmlinux.fjfi.cvut.cz/~makovick/alsa1x.diff
> 
> It adds an -ao driver called "alsa1x", which is alsa9 ported to the new 
> API. The audio capture driver is ported too. Is it okay to commit, or 
> you find the current solution (turning alsa into a compatibility mode) 
> good enough?
> 

It would be a good idea to add at the top of the alsa source code, 
before the include asoundlib.h statements: -

#define ALSA_PCM_NEW_HW_PARAMS_API
#define ALSA_PCM_NEW_SW_PARAMS_API

That will let the new api source code work from alsa version 0.9.0rc4 
and up, including 1.x.x

Cheers
James




More information about the MPlayer-dev-eng mailing list