logo       


AL/ALC errors during ALUT functions: msg#00222

Subject: AL/ALC errors during ALUT functions
We are currently using the following AL/ALC functions in ALUT:

   alcOpenDevice
   alcCloseDevice
   alcCreateContext
   alcDestroyContext
   alcGetCurrentContext
   alcMakeContextCurrent
   alGenBuffers
   alBufferData

Most of these function can lead to an AL/ALC error and I think we should 
specify a uniform way of handling these errors. The problem is that it is not 
100% clear to me how to do this in a nice way. Questions arising are:

 * Should ALUT check for these errors itself? Probably yes, but this would 
involve calling al(c)GetError for some of those functions above, which in 
turn clears the global error state. This might disguise some AL/ALC errors 
which have already happened (we might add ALUT_ERROR_AL_ERROR_ON_ENTRY or 
something like that).

 * Should ALUT call al(c)GetError to clear the global error state before it 
calls any of those functions above? Probably yes, otherwise we might get some 
false positives.

 * Should the detected AL/ALC errors be mapped to ALUT errors?

 * Should we state as a general rule that *all* ALUT functions clear the 
global AL/ALC error state? Although not all ALUT functions use AL/ALC 
functions internally, a general rule would be preferable to keep things 
simple. If and which AL/ALC functions get called internally should probably 
be kept an implementation detail.

Any opinions and/or suggestions?

Cheers,
   S.


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