[alsa-devel] Alsa-lib version info

Alan Horstmann gineera at aspect135.co.uk
Fri Dec 16 21:35:35 CET 2011

On Friday 16 December 2011 13:52, you wrote:
> Alan Horstmann wrote:
> > I have read in the docs about snd_asoundlib_version() to get a version
> > string, but is there a way to get the SND_LIB_VERSION number from a
> > runtime Alsa-lib, rather than from the header included at application
> > build time,
> No.
> > or would it have to be constructed from the string?
> Why are you interested in the version number?  What are you actually
> trying to check for?

To be able to apply workarounds for 'mis-behaviours' of older versions of 
Alsa-lib, since the aim (Portaudio) is to work as widely as possible.  A 
single number along the lines of SND_LIB_VERSION makes a one-line comparision 
possible - eg less than (1<<16 | 0 | 14) means prior to 1.0.14 - to activate 
some little fix-up.



More information about the Alsa-devel mailing list