Game Development Community

2D positional sound

by Jason McIntosh · in Torque Game Builder · 03/09/2005 (7:46 am) · 1 replies

So I'm looking to figure out how to pan a sound from left to right.

Isn't there a nice mySound.setPan( panValue ) call? :)=)

#1
03/09/2005 (8:18 am)
Well, there's alxPlay(profile, x, y, z). It doesn't appear that there's a simplified 2D versioin. I'm not sure where the listener is positioned. Probably 0, 0, 0. The tricky thing is that you need to rotate the point the sound is playing at around the listener rather than just changing the x value linearly or something, though it's a simply x, y cos, sin thing.