Jump to content


SUP ppl! HELP HELP HELP openAL!!


2 replies to this topic

#1 McCloud

    New Member

  • Members
  • Pip
  • 2 posts

Posted 25 September 2004 - 10:39 AM

Hi.

I am busy with a project, that uses openAL.

Loading a wav file works and changing the gain is the only function that i can get to work.
When i try to position the source, it doesnt work! I tried using mono wavs, mono wavs converted from stereo wavs, but there is no difference. AND i dont know the reference point for making a difference when changing the distance of the source.

eg. setting the source as follows => sourcePos[0] = 2.0, sourcePos[1] = 0.0, sourcePos[3] = 0.0 => these settings should offset the source to the left or right (doesnt matter, just want it to work), right?? And then attaching it like this alSourcefv(source,AL_POSITION,sourcePos); should work? :wacko:

What could be wrong?

And, the states of openAL dont work properly, am i correct? For eg, if i play a wav, and have a while loop just after alSourcePlay(source); where the evaluating condition in the while loop is AL_PLAYING, i think this is wrong, but what other variable in openAL will allow the loop to run as long as the wav is playing, and stop as soon as the wav stops?

(Excuse me if this post isnt structure well)

thanx,
McCloud :sad:

#2 Mihail121

    Senior Member

  • Members
  • PipPipPipPip
  • 1059 posts

Posted 25 September 2004 - 12:43 PM

Dunno about your problem (never looked deep enough in OAL) but it certainly seems to work correct in Unreal Warfare and other engines...

#3 lestat

    New Member

  • Members
  • Pip
  • 6 posts

Posted 20 February 2005 - 06:53 AM

what loader of wav files do you use, if aluts loader i dont now.
But i written my loader for wav files. i can help or can give you module from my engine.
Write lestat[at]studiodva.com





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users