Home
last modified time | relevance | path

Searched refs:mSamplingRate (Results 1 – 12 of 12) sorted by relevance

/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DRecorderRunnable.java47 private final int mSamplingRate; field in RecorderRunnable
94 mSamplingRate = samplingRate; in RecorderRunnable()
115 mMinRecorderBuffSizeInBytes = AudioRecord.getMinBufferSize(mSamplingRate, in initRecord()
139 .setSampleRate(mSamplingRate) in initRecord()
146 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initRecord()
163 ToneGeneration sincTone = new RampedSineTone(mSamplingRate, Constant.LOOPBACK_FREQUENCY); in initRecord()
176 mMinRecorderBuffSizeInBytes = AudioRecord.getMinBufferSize(mSamplingRate, in initBufferRecord()
193 int soundLevelSamples = (mSamplingRate / (int) mFrequency1) * cycles; in initBufferRecord()
206 .setSampleRate(mSamplingRate) in initBufferRecord()
213 mRecorder = new AudioRecord(mSelectedRecordSource, mSamplingRate, in initBufferRecord()
[all …]
DTestSettings.java24 mSamplingRate = samplingRate; in TestSettings()
30 return mSamplingRate; in getSamplingRate()
42 mSamplingRate = Utilities.clamp(samplingRate, in setSamplingRate()
56 private int mSamplingRate; field in TestSettings
DGlitchDetectionThread.java50 private final int mSamplingRate; field in GlitchDetectionThread
80 mSamplingRate = samplingRate; in GlitchDetectionThread()
85 mWaveDataRing = new WaveDataRingBuffer(mSamplingRate * bufferTestWavePlotDurationInSeconds); in GlitchDetectionThread()
104 mThreadSleepDurationMs = FFTOverlapSamples * Constant.MILLIS_PER_SECOND / mSamplingRate; in GlitchDetectionThread()
190 double width = (double) mSamplingRate / mCurrentSamples.length; in detectGlitches()
281 SineWaveTone sineWaveTone = new SineWaveTone(mSamplingRate, mFrequency1); in computeExpectedCenterOfMass()
288 double width = (double) mSamplingRate / sineWave.length; in computeExpectedCenterOfMass()
DNativeAudioThread.java59 private int mSamplingRate; field in NativeAudioThread
123 mSamplingRate = samplingRate; in NativeAudioThread()
138 mSamplingRate = old.mSamplingRate; in NativeAudioThread()
214 ToneGeneration sincToneGen = new RampedSineTone(mSamplingRate, in run()
220 log(String.format("about to init, sampling rate: %d, buffer:%d", mSamplingRate, in run()
226 long nativeHandle = nativeInit(mThreadType, mSamplingRate, in run()
263 int nNewSize = (int) (1.1 * mSamplingRate * latencyTestDurationInSeconds); in run()
378 mFFTSamplingSize = targetFFTMs * mSamplingRate / Constant.MILLIS_PER_SECOND; in setUpGlitchDetectionThread()
387 mGlitchDetectionThread = new GlitchDetectionThread(mFrequency1, mFrequency2, mSamplingRate, in setUpGlitchDetectionThread()
DLoopbackAudioThread.java58 private final int mSamplingRate; field in LoopbackAudioThread
99 mSamplingRate = samplingRate; in LoopbackAudioThread()
120 mMinPlayerBufferSizeInBytes = AudioTrack.getMinBufferSize(mSamplingRate, in run()
138 ToneGeneration toneGeneration = new SineWaveTone(mSamplingRate, frequency1); in run()
140 mRecorderRunnable = new RecorderRunnable(mLatencyTestPipe, mSamplingRate, mChannelConfigIn, in run()
157 .setSampleRate(mSamplingRate) in run()
165 mSamplingRate, in run()
DSineWaveTone.java36 mPhaseIncrement = Constant.TWO_PI * (frequency / mSamplingRate); // should < 2pi in SineWaveTone()
49 if (mIsGlitchEnabled && (mCount % mSamplingRate == 0)) { in generateTone()
70 if (mIsGlitchEnabled && (mCount % mSamplingRate == 0)) { in generateTone()
DCorrelation.java33 private int mSamplingRate; field in Correlation
54 mSamplingRate = samplingRate; in init()
59 mSamplingRate = samplingRate; in computeCorrelation()
75 int minIndex = (int) (0.5 + minLatencyMs * mSamplingRate / (groupSize * 1000)); in computeCorrelation()
110 mEstimatedLatencyMs = mEstimatedLatencySamples * 1000 / mSamplingRate; in computeCorrelation()
DAudioFileOutput.java41 private final int mSamplingRate; field in AudioFileOutput
47 mSamplingRate = samplingRate; in AudioFileOutput()
130 (byte) mSamplingRate, (byte) (mSamplingRate >> 8), 0, 0, // sample rate in writeHeader()
DToneGeneration.java25 protected int mSamplingRate; field in ToneGeneration
31 mSamplingRate = samplingRate; in ToneGeneration()
DWavePlotView.java55 private int mSamplingRate; field in WavePlotView
88 mSamplingRate = mDefaultSampleRate; in WavePlotView()
89 mBigDataArray = new double[mSamplingRate]; in WavePlotView()
279 if (samples > 0.0 && mSamplingRate > 0) { in onDraw()
280 double windowMs = (1000.0 * samples) / mSamplingRate; in onDraw()
309 double currentOffsetMs = (1000.0 * currentOffsetSamples) / mSamplingRate; in onDraw()
527 mSamplingRate = sampleRate; in setData()
DLoopbackActivity.java174 private int mSamplingRate; field in LoopbackActivity
242 mCorrelation.computeCorrelation(mRetainedFragment.getWaveData(), mSamplingRate);
379 mSamplingRate);
913 mSamplingRate = getApp().getSamplingRate(); in restartAudioSystem()
930 this, mSamplingRate); in restartAudioSystem()
932 log(" current sampling rate: " + mSamplingRate); in restartAudioSystem()
945 / (Constant.BYTES_PER_FRAME * mSamplingRate)); in restartAudioSystem()
952 / (Constant.BYTES_PER_FRAME * mSamplingRate)); in restartAudioSystem()
957 mAudioThread = new LoopbackAudioThread(mSamplingRate, mPlayerBufferSizeInBytes, in restartAudioSystem()
974 mNativeAudioThread = new NativeAudioThread(mAudioThreadType, mSamplingRate, in restartAudioSystem()
[all …]
DCaptureHolder.java66 private final int mSamplingRate; field in CaptureHolder
79 mSamplingRate = samplingRate; in CaptureHolder()
262 mSamplingRate); in run()