SFML community forums

Help => Audio => Topic started by: er4zox on February 17, 2015, 01:35:38 pm

Title: Need help with audio spatialization
Post by: er4zox 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)
Title: Re: Need help with audio spatialization
Post by: Laurent 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.