Home
last modified time | relevance | path

Searched refs:maxSample (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp345 float maxSample = 0.f; in Visualizer_process() local
347 maxSample = fmax(maxSample, fabs(inBuffer->f32[inIdx])); in Visualizer_process()
350 maxSample *= 1 << 15; // scale to int16_t, with exactly 1 << 15 representing positive num. in Visualizer_process()
353 int maxSample = 0; in Visualizer_process() local
355 maxSample = std::max(maxSample, std::abs(int32_t(inBuffer->s16[inIdx]))); in Visualizer_process()
360 pContext->mPastMeasurements[pContext->mMeasurementBufferIdx].mPeakU16 = (uint16_t)maxSample; in Visualizer_process()
380 float maxSample = 0.f; in Visualizer_process() local
388 maxSample = fmax(maxSample, fabs(smp)); in Visualizer_process()
390 if (maxSample > 0.f) { in Visualizer_process()
391 fscale = 0.99f / maxSample; in Visualizer_process()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp367 float maxSample = 0.01; in printAudioGraphRegion() local
370 if (samplePos > maxSample) { in printAudioGraphRegion()
371 maxSample = samplePos; in printAudioGraphRegion()
374 float gain = 0.98f / maxSample; in printAudioGraphRegion()