OpenAL device, buffer and context relationship

sunside <[email protected]>
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
Hi,

I'm trying to create an object oriented model to wrap OpenAL and have a
little problem understanding the devices, buffers and contexts.

>From what I can see in the Programmer's Guide, there are multiple devices,
each of which can have multiple contexts as well as multiple buffers. Each
context has a listener, and the alListener*() functions all operate on the
listener of the active context. (Meaning that I have to make another context
active first if I wanted to change it's listener, if I got that right.) So
far, so good. What irritates me though is that I need to pass a device to
the alcCreateContext() function, but none to alGenBuffers().

How does this work then? When I open multiple devices, on which device are
the buffers created? Are the buffers shared between all devices? What
happens to the buffers if I close all open devices?

(Or is there something I missed?)

Regards,
Markus

[ I also posted this question on StackOverflow a few days ago,
http://stackoverflow.com/questions/2960563 ]
-- 
View this message in context: http://old.nabble.com/OpenAL-device%2C-buffer-and-context-relationship-tp28780632p28780632.html
Sent from the OpenAL - User mailing list archive at Nabble.com.

_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.