Home
last modified time | relevance | path

Searched refs:mSamplingRate (Results 1 – 13 of 13) 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 …]
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()
189 double width = (double) mSamplingRate / mCurrentSamples.length; in detectGlitches()
280 SineWaveTone sineWaveTone = new SineWaveTone(mSamplingRate, mFrequency1); in computeExpectedCenterOfMass()
287 double width = (double) mSamplingRate / sineWave.length; in computeExpectedCenterOfMass()
DNativeAudioThread.java54 private int mSamplingRate; field in NativeAudioThread
93 mSamplingRate = samplingRate; in NativeAudioThread()
107 mSamplingRate = old.mSamplingRate; in NativeAudioThread()
180 ToneGeneration sincToneGen = new RampedSineTone(mSamplingRate, in run()
185 log(String.format("about to init, sampling rate: %d, buffer:%d", mSamplingRate, in run()
191 long sles_data = slesInit(mSamplingRate, in run()
228 int nNewSize = (int) (1.1 * mSamplingRate * latencyTestDurationInSeconds); in run()
341 mFFTSamplingSize = targetFFTMs * mSamplingRate / Constant.MILLIS_PER_SECOND; in setUpGlitchDetectionThread()
350 mGlitchDetectionThread = new GlitchDetectionThread(mFrequency1, mFrequency2, mSamplingRate, in setUpGlitchDetectionThread()
DTwoSineWavesTone.java41 mPhaseIncrement1 = Constant.TWO_PI * (frequency1 / mSamplingRate); // should < 2pi in TwoSineWavesTone()
42 mPhaseIncrement2 = Constant.TWO_PI * (frequency2 / mSamplingRate); // should < 2pi in TwoSineWavesTone()
58 if (mIsGlitchEnabled & (mCount % mSamplingRate == 0)) { in generateTone()
86 if (mIsGlitchEnabled & (mCount % mSamplingRate == 0)) { in generateTone()
DLoopbackAudioThread.java57 private final int mSamplingRate; field in LoopbackAudioThread
89 mSamplingRate = samplingRate; in LoopbackAudioThread()
110 mMinPlayerBufferSizeInBytes = AudioTrack.getMinBufferSize(mSamplingRate, in run()
128 ToneGeneration toneGeneration = new SineWaveTone(mSamplingRate, frequency1); in run()
130 mRecorderRunnable = new RecorderRunnable(mLatencyTestPipe, mSamplingRate, mChannelConfigIn, in run()
147 .setSampleRate(mSamplingRate) in run()
155 mSamplingRate, in run()
DSineWaveTone.java35 mPhaseIncrement = Constant.TWO_PI * (frequency / mSamplingRate); // should < 2pi in SineWaveTone()
48 if (mIsGlitchEnabled & (mCount % mSamplingRate == 0)) { in generateTone()
69 if (mIsGlitchEnabled & (mCount % mSamplingRate == 0)) { in generateTone()
DCorrelation.java33 private int mSamplingRate; field in Correlation
53 mSamplingRate = samplingRate; in init()
59 mSamplingRate = samplingRate; in computeCorrelation()
74 int minIndex = (int) (0.5 + minLatencyMs * mSamplingRate / (groupSize * 1000)); in computeCorrelation()
109 mEstimatedLatencyMs = mEstimatedLatencySamples * 1000 / mSamplingRate; in computeCorrelation()
DAudioFileOutput.java40 private final int mSamplingRate; field in AudioFileOutput
46 mSamplingRate = samplingRate; in AudioFileOutput()
129 (byte) mSamplingRate, (byte) (mSamplingRate >> 8), 0, 0, // sample rate in writeHeader()
DToneGeneration.java25 protected int mSamplingRate; field in ToneGeneration
31 mSamplingRate = samplingRate; in ToneGeneration()
DLoopbackActivity.java162 private int mSamplingRate; field in LoopbackActivity
223 mCorrelation.computeCorrelation(mWaveData, mSamplingRate);
351 mCorrelation.computeCorrelation(mWaveData, mSamplingRate);
804 mSamplingRate = getApp().getSamplingRate(); in restartAudioSystem()
821 this, mSamplingRate); in restartAudioSystem()
823 log(" current sampling rate: " + mSamplingRate); in restartAudioSystem()
834 / (Constant.BYTES_PER_FRAME * mSamplingRate)); in restartAudioSystem()
841 / (Constant.BYTES_PER_FRAME * mSamplingRate)); in restartAudioSystem()
846 mAudioThread = new LoopbackAudioThread(mSamplingRate, mPlayerBufferSizeInBytes, in restartAudioSystem()
860 mNativeAudioThread = new NativeAudioThread(mSamplingRate, mPlayerBufferSizeInBytes, in restartAudioSystem()
[all …]
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()
526 mSamplingRate = sampleRate; in setData()
DCaptureHolder.java66 private final int mSamplingRate; field in CaptureHolder
79 mSamplingRate = samplingRate; in CaptureHolder()
262 mSamplingRate); in run()
DLoopbackApplication.java41 private int mSamplingRate = 48000; field in LoopbackApplication
69 return mSamplingRate; in getSamplingRate()
73 mSamplingRate = clamp(samplingRate, Constant.SAMPLING_RATE_MIN, Constant.SAMPLING_RATE_MAX); in setSamplingRate()