Hello everyone, I am starting to add sounds to my project and I’m having some problems.
First off, I embed MP3 files and create Sound objects from them.
[Embed(source=“arrow.mp3”)]
private static var ArrowSound:Class;
public static var arrow:Sound = (Sound)(new ArrowSound());
Then I create a Sound3D object with a reference to my Sound object
sound = new Sound3D(AudioAsset.arrow, world.camera, null, 1, 1000);
Finally I add the Sound3D object in a container object that also includes a character mesh.
container.addChild(sound);
When calling the sound.play() method, I hear the sound fine, but the volume and pan are not affected by where the camera is (constant volume / pan)
Anyone has an idea of what I’m doing wrong?