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

Author Topic: 3D Audio doesn't seem to work.  (Read 5009 times)

0 Members and 1 Guest are viewing this topic.

aphro_

  • Newbie
  • *
  • Posts: 2
    • View Profile
3D Audio doesn't seem to work.
« 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.

WitchD0ctor

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.teleforce-blogspot.com
3D Audio doesn't seem to work.
« Reply #1 on: September 27, 2010, 02:39:02 am »
Ya there are some Gotcha's with using 3d sounds in SFML, give this Linky a visit,

helped me immensely
John Carmack can Divide by zer0.

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
3D Audio doesn't seem to work.
« Reply #2 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.

aphro_

  • Newbie
  • *
  • Posts: 2
    • View Profile
3D Audio doesn't seem to work.
« Reply #3 on: September 27, 2010, 10:05:43 pm »
My audio is Mono - single chanelled.

The previous forum thread however helped.  Thank you.