Searched refs:amplitude (Results 1 - 20 of 20) sorted by relevance

/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
H A DToneGeneration.java59 public void setAmplitude(double amplitude) { argument
60 mAmplitude = amplitude;
H A DSoundLevelCalibration.java28 private static final double CRITICAL_RATIO = 0.41; // Ratio of input over output amplitude at
78 double amplitude = runAudioThread(mNativeAudioThread);
80 Log.d(TAG, "calibrate: at sound level " + level + " volume was " + amplitude);
82 if (amplitude < Constant.SINE_WAVE_AMPLITUDE * CRITICAL_RATIO) {
95 // runs the native audio thread and returns the average amplitude
115 return Math.sqrt(2.0 * sumSquare / data.length); // amplitude of the sine wave
/external/skia/samplecode/
H A DSampleAnimBlur.cpp15 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { argument
21 amplitude = SK_ScalarHalf * amplitude;
22 return amplitude * SkDoubleToScalar(sin(t)) + amplitude;
/external/skqp/samplecode/
H A DSampleAnimBlur.cpp15 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { argument
21 amplitude = SK_ScalarHalf * amplitude;
22 return amplitude * SkDoubleToScalar(sin(t)) + amplitude;
/external/autotest/client/cros/audio/
H A Daudio_quality_measurement_unittest.py26 amplitude = 1
34 wave.append(float(amplitude) * (sine_wave + noise))
42 teager_value_of_wave /= float(length * (amplitude ** 2))
44 noise = audio_quality_measurement.noise_level(amplitude, frequency,
68 self.amplitude = 1
75 self.y.append(float(self.amplitude) * sine_wave)
80 noise_amplitude = 0.01 * self.amplitude
107 self.y[i] = 3 * self.amplitude
119 self.y[i] = self.amplitude
131 self.y[j] = self.amplitude * (
[all...]
H A Daudio_quality_measurement.py32 # amplitude increases/decreases linearly.
39 # In this module, amplitude and frequency are derived from Hilbert transform.
40 # Both amplitude and frequency are a function of time.
43 # average amplitude of its block. The block size will be 1.5 ms.
44 # Using average amplitude can mitigate the error caused by
61 # If the amplitude of some sample is less than 0.6 times of the
62 # average amplitude of its left/right block, it will be considered
66 # If the average amplitude of the block before or after playing
67 # is more than 0.5 times to the average amplitude of the wave,
71 # In the sine wave, if the amplitude i
[all...]
H A Daudio_analysis_unittest.py200 def create_constant_anomaly(self, amplitude):
203 @param amplitude: The amplitude of the constant samples.
208 [amplitude] * int(self.anomaly_duration_secs * self.rate))
259 one block of samples with 0 amplitude.
/external/webrtc/webrtc/modules/audio_processing/
H A Dsplitting_filter_unittest.cc56 float amplitude = is_present[j] ? kAmplitude : 0.f; local
59 amplitude * sin(2.f * M_PI * kFrequenciesHz[j] *
H A Daudio_processing_impl_locking_unittest.cc462 float amplitude,
468 // Store random 16 bit quantized float number between +-amplitude.
469 frame[ch][k] = amplitude * (2 * rand_gen->RandFloat() - 1);
476 int16_t amplitude,
478 ASSERT_GT(amplitude, 0);
479 ASSERT_LE(amplitude, 32767);
482 // Store random 16 bit number between -(amplitude+1) and
483 // amplitude.
485 rand_gen->RandInt(2 * amplitude + 1) - amplitude
461 PopulateAudioFrame(float** frame, float amplitude, size_t num_channels, size_t samples_per_channel, RandomGenerator* rand_gen) argument
475 PopulateAudioFrame(AudioFrame* frame, int16_t amplitude, RandomGenerator* rand_gen) argument
[all...]
H A Daudio_processing_performance_unittest.cc393 auto populate_audio_frame = [](float amplitude, size_t num_channels,
398 // Store random float number with a value between +-amplitude.
399 frame[ch][k] = amplitude * (2 * rand_gen->Rand<float>() - 1);
/external/webrtc/webrtc/modules/video_coding/
H A Djitter_estimator_tests.cc49 ValueGenerator(int32_t amplitude) : amplitude_(amplitude), counter_(0) {} argument
/external/kernel-headers/original/uapi/sound/
H A Dsfnt_info.h136 unsigned char amplitude; /* sample volume (127 max) */ member in struct:soundfont_voice_info
/external/autotest/client/site_tests/firmware_TouchMTB/
H A DtouchbotII_robot_wrapper.py195 # The amplitude of noise in Vpp.
704 waveform = frequency = amplitude = None
713 amplitude = self._amplitude_dict[element]
715 if waveform and frequency and amplitude:
717 waveform, frequency, amplitude)
/external/adhd/cras/src/tests/
H A Ddsp_core_unittest.cc16 /* Adds amplitude * sin(pi*freq*i + offset) to the data array. */
18 float amplitude)
21 data[i] += amplitude * sinf((float)M_PI*freq*i + offset);
17 add_sine(float *data, size_t len, float freq, float offset, float amplitude) argument
/external/ImageMagick/www/api/
H A Dfx.php744 <p>WaveImage() creates a "ripple" effect in the image by shifting the pixels vertically along a sine wave whose amplitude and wavelength is specified by the given parameters.</p>
749 Image *WaveImage(const Image *image,const double amplitude,
765 <dt>amplitude, wave_length</dt>
766 <dd> Define the amplitude and wave length of the sine wave. </dd>
H A Dmagick-image.php7602 <p>MagickWaveImage() creates a "ripple" effect in the image by shifting the pixels vertically along a sine wave whose amplitude and wavelength is specified by the given parameters.</p>
7608 const double amplitude,const double wave_length,
7623 <dt>amplitude, wave_length</dt>
7624 <dd> Define the amplitude and wave length of the sine wave. </dd>
/external/drrickorang/LoopbackApp/app/src/main/jni/
H A Dsles.cpp300 float amplitude = 0.8; local
305 value = (short) (sin(pSles->bufferTestPhase1) * maxShort * amplitude);
/external/ImageMagick/MagickCore/
H A Dfx.c5600 % vertically along a sine wave whose amplitude and wavelength is specified
5605 % Image *WaveImage(const Image *image,const double amplitude,
5613 % o amplitude, wave_length: Define the amplitude and wave length of the
5621 MagickExport Image *WaveImage(const Image *image,const double amplitude, argument
5659 fabs(amplitude)),MagickTrue,exception);
5680 sine_map[i]=fabs(amplitude)+amplitude*sin((double) ((2.0*MagickPI*i)/
H A Dstatistic.c924 amplitude,
930 Sinusoid: frequency, phase, amplitude, bias.
934 amplitude=(number_parameters >= 3) ? parameters[2] : 0.5;
936 result=(double) (QuantumRange*(amplitude*sin((double) (2.0*
921 amplitude, local
/external/ImageMagick/MagickWand/
H A Dmagick-image.c12492 % the pixels vertically along a sine wave whose amplitude and wavelength
12498 % const double amplitude,const double wave_length,
12505 % o amplitude, wave_length: Define the amplitude and wave length of the
12512 const double amplitude,const double wave_length,
12524 wave_image=WaveImage(wand->images,amplitude,wave_length,method,
12258 MagickWaveImage(MagickWand *wand, const double amplitude,const double wave_length, const PixelInterpolateMethod method) argument

Completed in 610 milliseconds