logo       


Re: ALchar vs ALubyte: msg#00155

Subject: Re: ALchar vs ALubyte
On Tuesday 30 August 2005 17:13, Jason Daly wrote:
> Andreas Beckermann wrote:
> >Hi
> >I used to use alGetProcAddress((ALubyte*)"foobar") however with OpenAL 1.1
> >this fails, as alGetProcAddress() now takes a ALchar* instead of a
> > ALubyte*. Changing this to alGetProcAddress((ALchar*)"foobar") fails on
> > OpenAL 1.0 systems.
> >Changing this to alGetProcAddress("foobar") fails on at least OpenAL 1.0
> >systems.
> >
> >Is there a way to retrieve the OpenAL version at compile time (like in
> > OpenGL which provides GL_VERSION_*) ?
> >Currently we are using
> >  #ifdef AL_BYTE_OFFSET // OpenAL >= 1.1
> >  alGetProcAddress((ALchar*)"foobar");
> >  #else // OpenAL 1.0
> >  alGetProcAddress((ALubyte*)"foobar");
> >  #endif
> >however this solution obviously sucks. What is the "correct" way?
> >
> >(I am using the linux version)
>
> Hmm.  Well, I'd say use alGetString(AL_VERSION), but at the moment,
> that's going to give you "0.0.8", or something like that (the version
> number on the library, instead of the spec).   Probably what it should
> return is something like "1.1 Linux 0.0.8" instead.
>
> Eventually, this is going to be the way to do it, but as with much of
> the Linux implementation, it's not ready yet.
>
> --"J"

I'm afraid that doesn't suffice. alGetString() can give a runtime version 
string only, that won't help at compilation time :-(

CU
Andi


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe