@Override
    public void alBufferData(final int buffer, final int format, final ByteBuffer data, final int size, final int frequency) {
        if (data.position() != 0) throw new AssertionError();
        if (data.limit() != size) throw new AssertionError();
        AL10.alBufferData(buffer, format, data, frequency);
    }
The LWJGL implementation of {@link AL}.
jme3-lwjgl3/src/main/java/com/jme3/audio/lwjgl/LwjglAL.java