Searched refs:maxSample (Results 1 – 2 of 2) sorted by relevance
345 float maxSample = 0.f; in Visualizer_process() local347 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() local355 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() local388 maxSample = fmax(maxSample, fabs(smp)); in Visualizer_process()390 if (maxSample > 0.f) { in Visualizer_process()391 fscale = 0.99f / maxSample; in Visualizer_process()
367 float maxSample = 0.01; in printAudioGraphRegion() local370 if (samplePos > maxSample) { in printAudioGraphRegion()371 maxSample = samplePos; in printAudioGraphRegion()374 float gain = 0.98f / maxSample; in printAudioGraphRegion()