   Open AL - Please Help
  I've been tinkering with Open AL a little and ran into a small problem.  All of my sounds work except for the 3D sounds.When I use the player's position for the speaker position I hear the sound just fine, however, if I position the sound distant from the player I hear nothing.  The distance is within 256 units.Math.VectCopy(&pImpactSound3D[sidx].dir, &pClient[0].dir);Math.VectCopy(&pImpactSound3D[sidx].listener, &pClient[0].pos);Math.VectCopy(&pImpactSound3D[sidx].pos, &pProjectile[idx].pos);//Math.VectCopy(&pImpactSound3D[sidx].pos, &pClient[0].pos);OALSound.SetPosition(&pImpactSound3D[sidx]);OALSound.SetListener(&pImpactSound3D[sidx]);OALSound.Play(&pImpactSound3D[sidx]);Any help would be appreciated.   
  Are your sounds mono? If your using stereo-clips their "position" will always be where the camera is.Also, check your attenuation-function. Which model are you using?   ;  Thanks for the feedback.int CSoundOAL::SetVolume(soundOAL_s* sound){// set this sound's volumealSourcef(sound->source, AL_GAIN, sound->volume);Error(20, sound);return TRUE;}Wasn't sure about the model part.  The working "sample" that I looked at didn't use any of the model stuff.  It just set the sound position and listener position and worked just fine.Do I need to look into the AL_MIN_GAIN and AL_MAX_GAIN as well?   ;  Ahh, just looked through the header file a bit more.  Seems likeAL_MAX_DISTANCEand one of these#define AL_DISTANCE_MODEL0xD000#define AL_INVERSE_DISTANCE   0xD001#define AL_INVERSE_DISTANCE_CLAMPED0xD002#define AL_LINEAR_DISTANCE    0xD003#define AL_LINEAR_DISTANCE_CLAMPED 0xD004#define AL_EXPONENT_DISTANCE  0xD005#define AL_EXPONENT_DISTANCE_CLAMPED    0xD006along with thisAL_API void AL_APIENTRY alDistanceModel( ALenum distanceModel );is going to be necessary.Let's see what happens.   ;  Got it.  Now to figure out why the speakers are backwards from the player perspective.Thanks for the help.  :-)[Edited by - Hacksaw2201 on September 3, 2007 3:05:52 PM];  Hmm, apparently setting the listener position to the player when using AL_LINEAR_DISTANCE makes the speakers backwards.  Seems more like the listener will hear the sound played from this position and the speaker position is where the client is standing.Anyway it's working now.  Thanks once again.   