DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-30-2005, 05:11 AM   #1
Orbz
New Member
 
Join Date: Nov 2005
Posts: 4
Default OpenAL Contexts

I am just messing about with some of the sample OAL code, It seems very straightforward, except for the contexts.
What exactly are they? whats the best way to use them?
Cheers
Orb
Orbz is offline   Reply With Quote
Old 11-30-2005, 05:57 AM   #2
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default Re: OpenAL Contexts

A context is nothing more than a handle to the device you are attempting to use. The context is used as a bridge to allow OpenAL to pass your sound calls to the relevant device and hardware.

Contexts are not really 'used' as such. Once you create a context (most normal applications only need the one), and set it as the current context (using alcMakeContextCurrent) then you no longer need to worry about it, until it comes time to delete it.

You can switch between contexts (if you have used OpenGL contexts, you should have an understanding of this), but with AL, you probably won't need to.

Contexts are not something that are usually covered in depth, as they are usually used in limited ways, but its always nice to understand what you are doing.

Spree
SpreeTree is offline   Reply With Quote
Old 11-30-2005, 07:49 AM   #3
Orbz
New Member
 
Join Date: Nov 2005
Posts: 4
Default Re: OpenAL Contexts

So its not a way to handle multiple environments? in EAX ?
Orbz is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 08:53 PM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.