Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Directional sound depending on camera movement in openAL

$
0
0

I'm trying to get directional sound to work correctly in openAL. I'm getting sound, and it IS directional, but I'll explain the problem. The game is a 3d first person game, and if I move the character around an audio source the audio behaves as expected and seems to rotate appropriately, BUT the rotation of the player camera has no effect. Below is my current code, which is just a test, changing the -1 to 1 for example has zero effect in how the audio is perceived. The method is called every frame in the game, so …


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>