OpenAL and source position

Started by
0 comments, last by samson77 14 years, 11 months ago
Hi there, I've been playing around with OpenAL and have some problems positioning my source. I finally figured out that the wav file has to be mono and I can position the source to the left and to the right. My listener is at 0.0, 0.0, 0.0 and my source starts there as well which is giving me output on the left and on the right speaker. If i move my source a little bit to the right (x = 0.01) then all of a sudden the left speaker doesn't give me any output and I can only here the right speaker. I want to smoothly fade from left to right, but there is an ugly jump. Any idea?
Advertisement
SOLVED.

Turns out that my z-position of my listener and the source were the same. In this case obviously when we move the source to the right the listener would actually block out the left speaker.
I've set my listener z = -1.0f and my source z = 1.0f and it fixed it, woohoo!

This topic is closed to new replies.

Advertisement