Problem with panning using OpenAL

Hello once again,

I've just started implementing sound into my project. I'm using OpenAL. For some Reason the panning doesn't seem to work. I've been testing around with a simplified version of "testsoundgraph.java" from the jme test packet (see code at the bottom of my post). The "maxaudibledistance" works, but if I turn around my own axis the sound still comes in the same volume one both the left and the right speaker. Can anybody help me here? Maybe I'm just beeing stupid right now forgetting something quite simple.



Thanks in advance to anybody helping me here.



/*
 * Copyright (c) 2003-2006 jMonkeyEngine
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 * * Redistributions of source code must retain the above copyright
 *   notice, this list of conditions and the following disclaimer.
 *
 * * Redistributions in binary form must reproduce the above copyright
 *   notice, this list of conditions and the following disclaimer in the
 *   documentation and/or other materials provided with the distribution.
 *
 * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
 *   may be used to endorse or promote products derived from this software
 *   without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package jmetest.sound.openal;

import com.jme.app.SimpleGame;
import com.jme.bounding.BoundingSphere;
import com.jme.image.Texture;
import com.jme.math.Vector3f;
import com.jme.scene.shape.Box;
import com.jme.scene.state.TextureState;
import com.jme.util.TextureManager;
import com.jmex.sound.openAL.SoundSystem;
import com.jmex.sound.openAL.scene.Configuration;

/**
 * @author Arman Ozcelik
 * @version $Id: TestSoundGraph.java,v 1.12 2006/01/26 21:27:12 Anakan Exp $
 */
public class CopyOfTestSoundGraph extends SimpleGame {
    private int snode;

    int boxCenter;
    int boxRight;
    int boxLeft;

    int background;

    Box box;
    Box leftBox;
    Box rightBox;

   private float volume;

    public static void main(String[] args) {
        CopyOfTestSoundGraph app = new CopyOfTestSoundGraph();
        app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);
        app.start();
    }

    protected void simpleUpdate() {       
        SoundSystem.update(0.0f);
    }

    protected void simpleRender() {
        SoundSystem.draw(snode);
    }

    protected void simpleInitGame() {
        display.setTitle("Test Sound Graph");
        SoundSystem.init(display.getRenderer().getCamera(),
                SoundSystem.OUTPUT_DSOUND);
        Vector3f max = new Vector3f(5, 5, 5);
        Vector3f min = new Vector3f(-5, -5, -5);
        box = new Box("Box", min, max);
        box.setModelBound(new BoundingSphere());
        box.updateModelBound();
        box.setLocalTranslation(new Vector3f(0, 10, -50));
         
        rootNode.attachChild(box);
       

        snode = SoundSystem.createSoundNode();
        try {
            boxCenter = SoundSystem.create3DSample(CopyOfTestSoundGraph.class.getClassLoader()
                    .getResource("jmetest/data/sound/test.ogg"));

        } catch (Exception e) {
            e.printStackTrace();
        }

       
        SoundSystem.setSampleMaxAudibleDistance(boxCenter, 100);
        SoundSystem.setSamplePosition(boxCenter, box.getLocalTranslation().x,
                box.getLocalTranslation().y, box.getLocalTranslation().z);
        SoundSystem.setSampleMinAudibleDistance(boxCenter, 4);
        SoundSystem.addSampleToNode(boxCenter, snode);
        SoundSystem.playSample(boxCenter);
       


    }
}