private void setSourceParams(int sourceId, AudioSource src, boolean forceNonLoop) {

        al.alSourcef(sourceId, AL_GAIN, src.getVolume());
        al.alSourcef(sourceId, AL_PITCH, src.getPitch());
        al.alSourcef(sourceId, AL_SEC_OFFSET, src.getTimeOffset());

        applySourceLooping(sourceId, src, forceNonLoop);
        applySourcePositionalState(sourceId, src);
        applySourceDirectionalState(sourceId, src);
        applySourceDryFilter(sourceId, src);
    }
Applies all parameters from the AudioSource to the specified OpenAL source ID.
Used when initially playing a source or instance.

@param sourceId     The OpenAL source ID.
@param src          The jME AudioSource.
@param forceNonLoop If true, looping will be disabled regardless of source setting (used for instances).
jme3-core/src/main/java/com/jme3/audio/openal/ALAudioRenderer.java