title: Convert jfloatarray to float*
body: <p>I've this function in JNI, a wrapper that call WebRtcNs_Process. WebRtcNs_Process receive float*, so how i can convert jfloatArray to float* ?</p>
  
  <pre><code> JNIEXPORT jint JNICALL
   nativeNsProcess
   (JNIEnv *env, jclass jclazz, jint nsHandler, const jfloatArray input_frame, jfloatArray out) {
  
  //get handle
  NsHandle* NS_instance = (NsHandle*) nsHandler;
  
  if (NS_instance == NULL)
      return -1;
  int ret;
  
  if (input_frame == NULL || out == NULL)
      return -1;
  
  //create native floats from java floats
  jfloat* native_input_frame = (*env)-&gt;GetFloatArrayElements(env, input_frame,
          NULL);
  
  jfloat* native_output_frame = (*env)-&gt;GetFloatArrayElements(env, out, NULL);
  
  //noise suppression
  ret = WebRtcNs_Process(NS_instance, native_input_frame, NULL,
          native_output_frame, NULL);
  
  //cleanup and return
  (*env)-&gt;ReleaseFloatArrayElements(env, input_frame, native_input_frame, 0);
  
  (*env)-&gt;ReleaseFloatArrayElements(env, out, native_output_frame, 0);
  
  return ret;
  
  }
  </code></pre>