Re: 2 context parallel on 2 devices
Chris Robinson <[email protected]> Sat, 03 Mar 2012 23:12:17 -0800
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <2780293.CLG2xjXTUr@kittycat> |
On Saturday, March 03, 2012 5:49:05 PM Christian Schäfer wrote: > My approach of thinking was to create 2 contexts (1soundcard per context) > that are logically on top of each other. The bottom one should cover the > negative y-axis, the other one should cover the positive y-axis. Every time > a source is moved or created it is checked, if the y position value is > negative or positive and the source added/moved to the matching context. > > Now I realized, that it is only possible to have one current active context. > Is my approach anyway possible? Hi Christian, Theoretically it should be possible with OpenAL Soft, as it supports 7.1 output and multiple contexts. Using its (almost complete) loopback extension, you can have fine control over how much gets rendered from each device and when. You (your app) would be responsible for getting the rendered audio onto actual soundcards though, and for making sure the streams stay synchronized, particularly in case the timer on the two cards can drift. > Is there a way to have 2 contexts on different soundcards active and moving > sources from one to the other? You can't move sources between contexts, but you can manually duplicate them. For each source generated on context 1, also generate a source on context 2. everytime you update a source on context 1, update it also on context 2, etc. _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal