[Openal] Split wav channel
Jason Daly
jdaly at ist.ucf.edu
Tue Jul 28 08:36:27 PDT 2009
Andrea Mannarà wrote:
> Hello,
> I'm new user of OpenAl and i need to make spatial a wave with stereo
> channel.
> I thought I can split it in two separated sources and make these spatial.
> But How can I split the 2 channel?
There isn't a way to do this by using only OpenAL. A buffer with
multiple channels will not be spatialized by OpenAL, and there isn't any
way to split or combine the channels inside OpenAL itself. Your best
bet is to use a sound editing tool to convert the sound from stereo to
mono, and then load that into OpenAL to do your spatialization.
If you really do need the stereo sound to be spatialized (this doesn't
really make sense, except in a few special cases), you can use the sound
editing tool to save out each channel of the stereo sound separately,
and then create two sources (one for left, one for right), and position
them appropriately.
--"J"
More information about the Openal
mailing list