LWJGL
May 17, 2012, 02:51:24 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: No 3D sound while using 3D sound  (Read 3253 times)
Fool Running
Nerdus Imperius
*****
Posts: 647


« on: October 16, 2005, 10:29:01 »

I was able to get 3D sound working using OpenAL, but if I want to play a sound that isn't 3D (like a click for a menu item) it wants to put that sound in relative 3D space to my listener.  Is there a way to tell OpenAL not to calculate a particular source for 3D?  
The only way I can see to do it so far is to set my listener location, listener orentation, and sound pos to (0, 0, 0) for the non-3D sounds and the correct values for the 3D sounds. That seems like alot of extra OpenAL calls (although I could re-write my sound engine to sort the 3D/non-3D sounds). Any help would be great.  :wink:
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
princec
Nerdus Imperius
*****
Posts: 1781



WWW
« Reply #1 on: October 16, 2005, 12:51:49 »

Actually that's exactly how you do it.
Or use stereo sound.

Cas Smiley
Logged

Fool Running
Nerdus Imperius
*****
Posts: 647


« Reply #2 on: October 17, 2005, 10:00:06 »

Ok, thanks Cas Cheesy
Logged

Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option Grin
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!