SFML community forums

Help => Audio => Topic started by: aphro_ on September 27, 2010, 02:22:38 am

Title: 3D Audio doesn't seem to work.
Post by: aphro_ on September 27, 2010, 02:22:38 am
I've been looking at this for quite some time now and have concluded it's probably a bug within SFML.

I have a single channel ogg audio file which i want to apply 3D effects to.  My listener position is definitely set in my code and when i print debug stats to my screen all of the values are being set correctly in my code.  The only thing is, there is still no 3D effect.  It's as if Listener is constantly not being set.

I'm using the CSFML binding inside C#.  Everything else works great, the graphics playing sound etc. it's just i can not seem to get 3D sounds working properly.

I have set the values in my code as a test:

 sound.RelativeToListener = false;
            sound.Volume = 50;
           
           
            Listener.Position = new SFML.Graphics.Vector3(20,0 ,30);
            Listener.Direction = new SFML.Graphics.Vector3(0, 1, 0);

I may be missing something but i'd really appreciate the help.

thanks.
Title: 3D Audio doesn't seem to work.
Post by: WitchD0ctor on September 27, 2010, 02:39:02 am
Ya there are some Gotcha's with using 3d sounds in SFML, give this Linky (http://www.sfml-dev.org/forum/viewtopic.php?t=1225&highlight=) a visit,

helped me immensely
Title: 3D Audio doesn't seem to work.
Post by: Lupinius on September 27, 2010, 06:21:06 pm
Had the same problem playing with 3d sound just now, make sure your sound is mono, else it won't work.
Title: 3D Audio doesn't seem to work.
Post by: aphro_ on September 27, 2010, 10:05:43 pm
My audio is Mono - single chanelled.

The previous forum thread however helped.  Thank you.