[Openal] How to select output channel
Martin Diz
listas at martirac.com.ar
Sun Mar 29 21:38:29 PDT 2009
Jason,
I get my sound card working with all the channels and your idea works.
The first coord let mi select left side (-1), both (0) or right (1)
The third coord select front (-1), both (0) or back (1)
So for play in all speaker should be (0,y,0)
rear left (-1,y,1)
What i didnt figured out is:
1- how to control center & sub buffer speakers, it plays very quiet sound in
all coord cases
2- What y coord is for.
Once again thank you for your help!!!
Martin Diz
On Fri, Mar 27, 2009 at 12:22, Jason Daly <jdaly at ist.ucf.edu> wrote:
> Martin Diz wrote:
>
> Hello, i`m working on a project that requires surround sound.
> I managed to play ogg file with no problem.
> What i need to do next is to select which of the speaker in a 7.1 or 5.1
> arrangement will play the sound.
> for example i have file1.ogg and file2.ogg ( both mono channel file`s), and
> should play file1 in the front left speaker and file2 in both rear speakers.
> I spent a lot of time in google.com but didn't find the answer nor a place
> to get started with this issue.
> Bay the way im using Linux 2.6.26-1-686, alsa, and a sound blaster live
> 5.1.
> The sourround sound works great on mi pc i tested it with others
> applications.
> I hope i make my self clear and some one could help me!
> Thank you in advance.
>
>
> I don't think there's a way to force a sound to a particular speaker (there
> might be an extension for this, but I don't know of it).
>
> Probably the closest you can come is to place the sound at the appropriate
> coordinates to where OpenAL's normal spatialization will render it from that
> speaker.
>
> If I've got my coordinates straight, it'll be (-1.0, -1.0, 0.0) for
> file1.ogg, and (0.0, 1.0, 0.0) for file2.ogg, assuming you have the listener
> positioned at (0.0, 0.0, 0.0) (or you set the sources to be relative).
>
> You probably won't get 100% of the sound from the speakers you want (some
> of it will likely spread to other speakers), but it should be close.
>
> --"J"
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090330/7c5052c3/attachment.html
More information about the Openal
mailing list