Lines Matching refs:fft
97 * captured data. A low playback volume will lead to low sample and fft values, and vice-versa.
480 * @param fft array of bytes where the FFT should be returned
486 public int getFft(byte[] fft)
492 return native_getFft(fft);
559 * <p>Data in the fft buffer is valid only within the scope of the callback.
560 * Applications which need access to the fft data after returning from the callback
566 * for (int i = 0; i < fft.size(); i += 2) {
567 * float magnitude = (float)Math.hypot(fft[i], fft[i + 1]);
568 * float phase = (float)Math.atan2(fft[i + 1], fft[i]);
571 * @param fft array of bytes containing the frequency representation.
572 * The fft array only contains the first half of the actual
583 void onFftDataCapture(Visualizer visualizer, byte[] fft, int samplingRate);
594 * @param fft true if a frequency capture is requested: the onFftDataCapture() method will be
600 int rate, boolean waveform, boolean fft) {
607 fft = false;
609 int status = native_setPeriodicCapture(rate, waveform, fft);
765 private native final int native_getFft(byte[] fft);
769 private native final int native_setPeriodicCapture(int rate, boolean waveForm, boolean fft);