DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 09-25-2004, 04:39 AM   #1
McCloud
New Member
 
Join Date: Sep 2004
Posts: 2
Default

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?

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
McCloud is offline   Reply With Quote
Old 09-25-2004, 06:43 AM   #2
Mihail121
Senior Member
 
Mihail121's Avatar
 
Join Date: Jan 2003
Posts: 868
Default

Dunno about your problem (never looked deep enough in OAL) but it certainly seems to work correct in Unreal Warfare and other engines...
Mihail121 is offline   Reply With Quote
Old 02-19-2005, 11:53 PM   #3
lestat
New Member
 
Join Date: Feb 2005
Posts: 6
Default

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
lestat is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 06:34 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.