[Openal] 2 context parallel on 2 devices

Jason Daly jdaly at ist.ucf.edu
Mon Mar 5 11:29:55 PST 2012


On 03/03/2012 11:49 AM, Christian Schäfer wrote:
> Do you have another approach for my project? Is OpenAL the right thing, to work with more than one soundcard?

You might be able to get the parallel context approach working.  It's a 
bit of a kludge (separate contexts were never really meant to cooperate 
in that way), but it could be workable.

If you're feeling ambitious and don't mind a bit of low-level 
programming, another approach could be to use the OpenAL-Soft code as a 
basis, and write a back-end that directly communicates with both sound 
cards as a single context, effectively creating a "virtual" 14.2 channel 
device.  This way, you could ensure correct amplitude panning between 
all 14.2 speakers, and your application code wouldn't have to be any 
different from any other OpenAL application.  It would work even if you 
took it to another system with a "normal" speaker configuration.

--"J"



More information about the Openal mailing list