Displaying 2 results from an estimated 2 matches for "speex_get_major_minor_version".
2004 Aug 06
0
Re: does installed lib support _int()s ?
...r version
You can partition the release level as follows:
00-2F = pre-alpha
30-4F = alpha
50-6F = beta
70-7F = gamma
80-FF = release
1.1b17 would be: 0x00010161
2.2.35 would be: 0x000202A3
Then you can define compile-time MACROS for
#define SPEEX_GET_FULL_VERSION (speex_lib_version())
#define SPEEX_GET_MAJOR_MINOR_VERSION (speex_lib_version() >> 24)
#define SPEEX_GET_MAJOR_VERSION (speex_lib_version() >> 16)
#define SPEEX_GET_RELEASE_LEVEL (speex_lib_version() & 0xFFUL)
#define SPEEX_GET_FULL_MINOR_VERSION (speex_lib_version() & 0xffffUL)
#define SPEEX_GET_MINOR_VERSION ((speex_lib_version() >...
2004 Aug 06
4
Re: does installed lib support _int()s ?
Hi,
Right now, I'm thinking of adding a speex_lib_ctl() call that would
support SPEEX_GET_VERSION (and return a string) or
SPEEX_GET_MAJOR_VERSION and SPEEX_GET_MINOR_VERSION (and return ints).
I'm open to other suggestions though. If there's anything you'd like to
see in the API for 1.2, say it now. ...and no, I won't add a
speex_do_all_the_work_for_me() call :)