I just switched from OpenAL to Fmod, because I was having trouble with my Xfi card and openal. Also Fmod looks way the hell better.

Anyways I got it all to work and I’m able to play sounds, but I’m having trouble figuring out the 3d part of it. I figured it would be as easy as openal, but when I use the same parameters to pass into fmod as I did openal for the sounds, it just doesnt work, so I did a test.

So in my game loop I have

[code:1oky4jdi]audiosystem->set3DListenerAttributes(0, &MakeVec(0, 0, 0), &MakeVec(0, 0, 0), &MakeVec(0, -1, 0),&MakeVec(0, 0, 1));

And to play my sound I have:
[code:1oky4jdi]audiosystem->playSound(FMOD_CHANNEL_FREE, sound, false, 0);
channel->set3DAttributes(&MakeVec(1000, 0, 0), &MakeVec(0, 0, 0));

So by looking at this, you would think the sound would play right side speaker, but it plays mono style, both speakers.

Basicly, if the listener is at 0,0,0, it ignores all the 3d stuff. what gives?

but as soon as I put listener at 1,0,0, all of a sudden I hear the sound on the right speaker.

  • You must to post comments

I think I found my problem. When I was playing my sound with a 0 or NULL channel , it would act weird and not respond to commands. So once I put in &channell, it worked perfectly.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.