Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Need help with audio spatialization  (Read 2564 times)

0 Members and 1 Guest are viewing this topic.

er4zox

  • Newbie
  • *
  • Posts: 7
    • View Profile
Need help with audio spatialization
« on: February 17, 2015, 01:35:38 pm »
Hey guys, why does the sound play from the right speaker only when the listener is "above" the sound.
The listener has the same X/Y pos as the sound.

Thanks for the help guys!

Code:
(click to show/hide)
« Last Edit: February 18, 2015, 12:34:14 am by er4zox »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Need help with audio spatialization
« Reply #1 on: February 19, 2015, 12:41:52 pm »
Quote
The listener has the same X/Y pos as the sound.
Nop, because you explicitly set the sound position to be relative to the listener instead of being absolute (snd_Sound.setRelativeToListener(true)). I don't think you need to be in relative mode.

And don't forget that by default, the listener's up vector is (0, 1, 0), so it's the XZ plane that controls the spatialization output.
Laurent Gomila - SFML developer

 

anything