1
Audio / Sound spatialization seems to be 0-1
« on: February 13, 2023, 09:55:08 pm »
I'm trying to make use of sound's position, but unless it's perfectly on the listener it always puts 100% of the sound in either speaker.
For example:
Entirety of this sound will be in the right speaker. There's no value I can set to make it sound like it's just a bit to the right; it's always all or nothing. I'm on Linux if it matters
For example:
sf::Listener::setPosition({0, 0, 0});
sf::Sound sound(/* sound buffer */);
sound.setPosition({0.0001, 0, 0});
sound.play();
sf::Sound sound(/* sound buffer */);
sound.setPosition({0.0001, 0, 0});
sound.play();
Entirety of this sound will be in the right speaker. There's no value I can set to make it sound like it's just a bit to the right; it's always all or nothing. I'm on Linux if it matters