Skip to contentSkip to conversation

Alsa-lib version info

DISCUSSION Alan Horstmann 2 participants 3 messages Dec 14, 2011 – Dec 16, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

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, or would it have to be constructed from the string?

Thanks

Alan

#1 lore raw
Quoted 3 lines · Alan Horstmann

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.

Quoted 1 line

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?

Regards,
Clemens

#2 lore raw
Quoted 6 lines · you
Quoted 4 lines · Alan Horstmann

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,

Quoted 6 lines

No.

Quoted 1 line

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.

Thanks

Alan