Home
last modified time | relevance | path

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

/third_party/alsa-utils/speaker-test/
Dpink.c58 long new_random; in generate_pink_noise_sample() local
83 new_random = ((long)generate_random_number()) >> PINK_RANDOM_SHIFT; in generate_pink_noise_sample()
84 pink->pink_running_sum += new_random; in generate_pink_noise_sample()
85 pink->pink_rows[num_zeros] = new_random; in generate_pink_noise_sample()
89 new_random = ((long)generate_random_number()) >> PINK_RANDOM_SHIFT; in generate_pink_noise_sample()
90 sum = pink->pink_running_sum + new_random; in generate_pink_noise_sample()
/third_party/gstreamer/gstplugins_base/gst/audiotestsrc/
Dgstaudiotestsrc.c774 glong new_random; in gst_audio_test_src_generate_pink_noise_value() local
797 new_random = 32768.0 - (65536.0 * (gulong) g_rand_int (src->gen) in gst_audio_test_src_generate_pink_noise_value()
799 pink->running_sum += new_random; in gst_audio_test_src_generate_pink_noise_value()
800 pink->rows[num_zeros] = new_random; in gst_audio_test_src_generate_pink_noise_value()
804 new_random = 32768.0 - (65536.0 * (gulong) g_rand_int (src->gen) in gst_audio_test_src_generate_pink_noise_value()
806 sum = pink->running_sum + new_random; in gst_audio_test_src_generate_pink_noise_value()