Panning Sound to left or right
Sven Kaempf <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
Hello there,
I've been trying to move a sound source around my listener object using
positioning in openAL like it is descibed in many tutorials.
My problem is, that I only can fade away the sound source, but not pan
it from left to right.
The following shall demonstrate the problem, I'm not getting at all.
"setup"
ListenerObjectPos : {0.0,0.0,0.0}
ListenerObjectOri: {0.0,0.0,0.0,0.0,0.0,1.0}
SourceObjectPos : {0.0,0.0,0.0}
SourceObjectVel : {0.1,0.1,0.1}
"fadeaway"
Now, if I move the source to position {0.0,0.0,20.0}, the sound of
the source fades out and it seems like it moves away.
"left-to-right"
Here I tried to move the source to position {20.0,0.0,0.0}, but the
sound doesn't move from left to right nor fades out in any way.
Also I tried to set the AL_CONE_INNER_ANGLE to less than 360 degree,
tried to move the listener object instead of moving the source and also
tried to set the ListenerObjectOri to (0.0,0.0,0.0,1.0,1.0,1.0). In the
last case the fading effect for moving the source along other axes occured.
According to the coordinates the source is really moving (checked by
alGetSourcefv(...)), but on headphones there is no acoustic difference.
Would you please give me a hint or do you need more information (source
code)?
Best Regards
S.Kämpf
***
Some more information of the testplatform of me:
using 64bit fedora here
rpm openAL
language: c/c++
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal