/external/skia/samplecode/ |
D | SampleAnimBlur.cpp | 14 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { in get_anim_sin() argument 20 amplitude = SK_ScalarHalf * amplitude; in get_anim_sin() 21 return amplitude * SkDoubleToScalar(sin(t)) + amplitude; in get_anim_sin()
|
/external/skqp/samplecode/ |
D | SampleAnimBlur.cpp | 15 SkScalar get_anim_sin(double secs, SkScalar amplitude, SkScalar periodInSec, SkScalar phaseInSec) { in get_anim_sin() argument 21 amplitude = SK_ScalarHalf * amplitude; in get_anim_sin() 22 return amplitude * SkDoubleToScalar(sin(t)) + amplitude; in get_anim_sin()
|
/external/webrtc/modules/audio_processing/agc2/rnn_vad/ |
D | features_extraction_unittest.cc | 44 void CreatePureTone(float amplitude, float freq_hz, rtc::ArrayView<float> dst) { in CreatePureTone() argument 46 dst[i] = amplitude * std::sin(2.f * kPi * freq_hz * i / kSampleRate24kHz); in CreatePureTone() 73 constexpr float amplitude = 1000.f; in TEST() local 90 CreatePureTone(amplitude, low_pitch_hz, samples); in TEST() 95 CreatePureTone(amplitude, high_pitch_hz, samples); in TEST()
|
/external/autotest/client/cros/audio/ |
D | audio_quality_measurement_unittest.py | 31 amplitude = 1 39 wave.append(float(amplitude) * (sine_wave + noise)) 47 teager_value_of_wave /= float(length * (amplitude ** 2)) 49 noise = audio_quality_measurement.noise_level(amplitude, frequency, 73 self.amplitude = 1 80 self.y.append(float(self.amplitude) * sine_wave) 85 noise_amplitude = 0.01 * self.amplitude 112 self.y[i] = 3 * self.amplitude 124 self.y[i] = self.amplitude 136 self.y[j] = self.amplitude * (3 + numpy.random.uniform(-1, 1))
|
D | audio_quality_measurement.py | 205 def average_teager_value(wave, amplitude): argument 222 teager_value = (float(teager_value) / length) / (amplitude ** 2) 226 def noise_level(amplitude, frequency, rate, teager_value_of_input): argument 253 teager_value_of_std_wave = average_teager_value(standard_wave, amplitude) 309 amplitude = numpy.abs(result) 314 return (amplitude, frequency) 827 amplitude, frequency = hilbert_analysis(signal, rate, block_size) 838 res = find_block_average_value(amplitude, block_size * 2, block_size) 860 sum_of_amplitude = float(sum(amplitude[start_index:end_index]))
|
/external/webrtc/modules/audio_processing/test/ |
D | echo_canceller_test_tools.cc | 24 float amplitude) { in RandomizeSampleVector() argument 26 v_k = 2 * amplitude * random_generator->Rand<float>() - amplitude; in RandomizeSampleVector()
|
D | echo_canceller_test_tools.h | 28 float amplitude);
|
/external/oboe/apps/fxlab/app/src/main/cpp/effects/utils/ |
D | SineWave.h | 25 SineWave(float frequency, float amplitude, int sampleRate): in SineWave() argument 27 kAmplitude(amplitude) { } in SineWave()
|
/external/webrtc/modules/audio_mixer/ |
D | sine_wave_generator.h | 23 SineWaveGenerator(float wave_frequency_hz, int16_t amplitude) in SineWaveGenerator() argument 24 : wave_frequency_hz_(wave_frequency_hz), amplitude_(amplitude) { in SineWaveGenerator()
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | ToneGeneration.java | 59 public void setAmplitude(double amplitude) { in setAmplitude() argument 60 mAmplitude = amplitude; in setAmplitude()
|
D | SoundLevelCalibration.java | 88 double amplitude = runAudioThread(mNativeAudioThread); in calibrate() local 90 Log.d(TAG, "calibrate: at sound level " + level + " volume was " + amplitude); in calibrate() 92 if (amplitude < Constant.SINE_WAVE_AMPLITUDE * ratio) { in calibrate()
|
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/ |
D | SawOscillator.java | 40 public void setAmplitude(float amplitude) { in setAmplitude() argument 41 mAmplitude = amplitude; in setAmplitude()
|
D | SynthVoice.java | 75 public void setAmplitude(float amplitude) { in setAmplitude() argument 76 this.mAmplitude = amplitude; in setAmplitude()
|
/external/webrtc/modules/audio_processing/ |
D | rms_level_unittest.cc | 47 int amplitude, in CreateInt16Sinusoid() argument 52 amplitude * std::sin(2 * M_PI * n * frequency_hz / kSampleRateHz)); in CreateInt16Sinusoid() 58 int amplitude, in CreateFloatSinusoid() argument 61 CreateInt16Sinusoid(frequency_hz, amplitude, num_samples); in CreateFloatSinusoid()
|
D | splitting_filter_unittest.cc | 55 float amplitude = is_present[j] ? kAmplitude : 0.f; in TEST() local 58 amplitude * sin(2.f * M_PI * kFrequenciesHz[j] * in TEST()
|
D | audio_processing_impl_locking_unittest.cc | 458 float amplitude, in PopulateAudioFrame() argument 465 frame[ch][k] = amplitude * (2 * rand_gen->RandFloat() - 1); in PopulateAudioFrame() 471 void PopulateAudioFrame(float amplitude, in PopulateAudioFrame() argument 476 ASSERT_GT(amplitude, 0); in PopulateAudioFrame() 477 ASSERT_LE(amplitude, 32767); in PopulateAudioFrame() 482 frame[k * ch] = rand_gen->RandInt(2 * amplitude + 1) - amplitude - 1; in PopulateAudioFrame()
|
/external/oboe/samples/hello-oboe/src/main/cpp/ |
D | SoundGenerator.cpp | 25 constexpr float amplitude = 1.0; in SoundGenerator() local 31 mOscillators[i].setAmplitude(amplitude); in SoundGenerator()
|
/external/oboe/samples/shared/ |
D | Oscillator.h | 53 inline void setAmplitude(float amplitude) { in setAmplitude() argument 54 mAmplitude = amplitude; in setAmplitude()
|
/external/oboe/apps/OboeTester/app/src/main/cpp/flowunits/ |
D | OscillatorBase.cpp | 23 , amplitude(*this, 1) in OscillatorBase()
|
D | SawtoothOscillator.cpp | 28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
|
D | SineOscillator.cpp | 32 const float *amplitudes = amplitude.getBuffer(); in onProcess()
|
D | TriangleOscillator.cpp | 28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
|
D | ImpulseOscillator.cpp | 28 const float *amplitudes = amplitude.getBuffer(); in onProcess()
|
/external/webrtc/modules/video_coding/ |
D | jitter_estimator_tests.cc | 47 explicit ValueGenerator(int32_t amplitude) in ValueGenerator() argument 48 : amplitude_(amplitude), counter_(0) {} in ValueGenerator()
|
/external/webrtc/test/fuzzers/ |
D | neteq_signal_fuzzer.cc | 48 const float amplitude = fuzz_data_.ReadOrDefaultValue<uint16_t>(65000) / 2; in Generate() local 52 x = rtc::saturated_cast<int16_t>(amplitude * std::sin(phase_) + in Generate()
|