All of lore.kernel.org
 help / color / mirror / Atom feed
* lib version?
@ 2004-04-27 18:06 Steve deRosier
  2004-04-28  7:05 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Steve deRosier @ 2004-04-27 18:06 UTC (permalink / raw)
  To: Alsa development

Ok, here's my stupid question of the day:

Is there any way for a program to query the alsa-lib to determine the version number?  Ie...  Assuming I'm using the relase of alsa-lib-1.0.4, I'd like to query and get back something that would indicate that I'm using that release (and I don't even care so much if my program is what queries it, I just need some way to figure what version the libasound.so.2.0.0 file is).

Basically here's the senerio I've got:
We've been developing a box for quite a while using alsa, and we've gone through regular upgrades of alsa on each release.   Unfortunately I'm trying to track down a rather serious problem in my client program, but I'm getting stymied due to what I suspect is a library version mismatch.  I got my program hacked up and working ok to a point and then it segfaults.  I replace libasound with a known 1.0.4 and it fails earlier in a different way (perhaps due to one of my hacks to get it working on whatever lib version I had in there).  I'm just trying to figure out why...  and knowing the library version # might get me there.

Any help would be appreciated.

Thanks,
- Steve



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lib version?
  2004-04-27 18:06 lib version? Steve deRosier
@ 2004-04-28  7:05 ` Clemens Ladisch
  2004-04-28 15:57   ` Giuliano Pochini
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2004-04-28  7:05 UTC (permalink / raw)
  To: Steve deRosier; +Cc: Alsa development

Steve deRosier wrote:
> Is there any way for a program to query the alsa-lib to determine
> the version number?

The function snd_asoundlib_version() won't be available before 1.0.5.
For earlier versions, you can try to test if the symbols listed in
alsa-lib/src/Versions are available.


HTH
Clemens




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: lib version?
  2004-04-28  7:05 ` Clemens Ladisch
@ 2004-04-28 15:57   ` Giuliano Pochini
  0 siblings, 0 replies; 3+ messages in thread
From: Giuliano Pochini @ 2004-04-28 15:57 UTC (permalink / raw)
  To: Alsa development


On 28-Apr-2004 Clemens Ladisch wrote:
> Steve deRosier wrote:
>> Is there any way for a program to query the alsa-lib to determine
>> the version number?
>
> The function snd_asoundlib_version() won't be available before 1.0.5.
> For earlier versions, you can try to test if the symbols listed in
> alsa-lib/src/Versions are available.

On the Amiga all libraries had a version (mandatory by design) and
any file could contain a version string readable with the shell
command "version" just embedding a string with this format:
$VER: thingname v<major>.<minor><sub>
It was a very handy feature :)



--
Giuliano.


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-28 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-27 18:06 lib version? Steve deRosier
2004-04-28  7:05 ` Clemens Ladisch
2004-04-28 15:57   ` Giuliano Pochini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.