Searched refs:mFFTSamplingSize (Results 1 – 5 of 5) sorted by relevance
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | FFT.java | 31 private final int mFFTSamplingSize; field in FFT 35 mFFTSamplingSize = FFTSamplingSize; in FFT() 38 m = (int) (Math.log(mFFTSamplingSize) / Math.log(2)); in FFT() 41 if (mFFTSamplingSize != (1 << m)) in FFT() 45 cos = new double[mFFTSamplingSize / 2]; in FFT() 46 sin = new double[mFFTSamplingSize / 2]; in FFT() 48 for (int i = 0; i < mFFTSamplingSize / 2; i++) { in FFT() 49 cos[i] = Math.cos(-2 * Math.PI * i / mFFTSamplingSize); in FFT() 50 sin[i] = Math.sin(-2 * Math.PI * i / mFFTSamplingSize); in FFT() 64 n2 = mFFTSamplingSize / 2; in fft() [all …]
|
D | GlitchDetectionThread.java | 51 private final int mFFTSamplingSize; // amount of samples used to perform a FFT field in GlitchDetectionThread 77 mFFTSamplingSize = FFTSamplingSize; in GlitchDetectionThread() 79 mNewSamplesPerFFT = mFFTSamplingSize - mFFTOverlapSamples; in GlitchDetectionThread() 83 mShortBuffer = new short[mFFTSamplingSize]; in GlitchDetectionThread() 84 mDoubleBuffer = new double[mFFTSamplingSize]; in GlitchDetectionThread() 92 mFFTResult = new double[mFFTSamplingSize/2]; in GlitchDetectionThread() 93 mCurrentSamples = new double[mFFTSamplingSize]; in GlitchDetectionThread() 94 mImagArray = new double[mFFTSamplingSize]; in GlitchDetectionThread() 96 mFFT = new FFT(mFFTSamplingSize); in GlitchDetectionThread() 116 requiredRead = mFFTSamplingSize - mShortBufferIndex; in run() [all …]
|
D | RecorderRunnable.java | 66 private int mFFTSamplingSize; // the amount of samples used per FFT. field in RecorderRunnable 230 mFFTSamplingSize = targetFFTMs * mSamplingRate / Constant.MILLIS_PER_SECOND; in initBufferRecord() 232 mFFTSamplingSize = (int) Math.pow(2, Math.round(Math.log(mFFTSamplingSize) / Math.log(2))); in initBufferRecord() 234 if (mFFTSamplingSize < 2) { in initBufferRecord() 235 mFFTSamplingSize = 2; // mFFTSamplingSize should be at least 2 in initBufferRecord() 237 mFFTOverlapSamples = mFFTSamplingSize / 2; // mFFTOverlapSamples is half of mFFTSamplingSize in initBufferRecord() 296 mFFTSamplingSize, mFFTOverlapSamples, mBufferTestDurationInSeconds, in startBufferRecordingForReal() 544 return mFFTSamplingSize; in getFFTSamplingSize()
|
D | NativeAudioThread.java | 84 private int mFFTSamplingSize; field in NativeAudioThread 378 mFFTSamplingSize = targetFFTMs * mSamplingRate / Constant.MILLIS_PER_SECOND; in setUpGlitchDetectionThread() 380 mFFTSamplingSize = (int) Math.pow(2, Math.round(Math.log(mFFTSamplingSize) / Math.log(2))); in setUpGlitchDetectionThread() 382 if (mFFTSamplingSize < 2) { in setUpGlitchDetectionThread() 383 mFFTSamplingSize = 2; // mFFTSamplingSize should be at least 2 in setUpGlitchDetectionThread() 385 mFFTOverlapSamples = mFFTSamplingSize / 2; // mFFTOverlapSamples is half of mFFTSamplingSize in setUpGlitchDetectionThread() 388 mFFTSamplingSize, mFFTOverlapSamples, mBufferTestDurationInSeconds, in setUpGlitchDetectionThread() 533 return mFFTSamplingSize; in getNativeFFTSamplingSize()
|
D | LoopbackActivity.java | 185 private int mFFTSamplingSize; field in LoopbackActivity 289 mFFTSamplingSize = mAudioThread.getFFTSamplingSize(); 361 mFFTSamplingSize = mNativeAudioThread.getNativeFFTSamplingSize(); 1483 GlitchesStringBuilder.getGlitchMilliseconds(mFFTSamplingSize, in saveAllTo() 1618 GlitchesStringBuilder.getGlitchMilliseconds(mFFTSamplingSize, in onActivityResult() 1779 GlitchText.setText(GlitchesStringBuilder.getGlitchString(mFFTSamplingSize, in onButtonGlitches() 1837 GlitchesStringBuilder.getGlitchMilliseconds(mFFTSamplingSize, in onButtonHeatMap() 2364 outputStream.write(GlitchesStringBuilder.getGlitchStringForFile(mFFTSamplingSize, in saveGlitchOccurrences() 2536 mFFTSamplingSize = in.getInt("mFFTSamplingSize"); in restoreInstanceState() 2594 out.putInt("mFFTSamplingSize", mFFTSamplingSize); in onSaveInstanceState()
|