/third_party/pulseaudio/src/modules/rtp/ |
D | module-rtp-recv.c | 277 uint32_t new_rate; in rtpoll_work_cb() local 340 …new_rate = (uint32_t) ((double) (RATE_UPDATE_INTERVAL + latency/4 - s->intended_latency/4) / (doub… in rtpoll_work_cb() 343 if (new_rate < (uint32_t) (s->base_rate*0.8) || new_rate > (uint32_t) (s->base_rate*1.25)) { in rtpoll_work_cb() 344 … pa_log_warn("Sample rates too different, not adjusting (%u vs. %u).", s->base_rate, new_rate); in rtpoll_work_cb() 345 new_rate = s->base_rate; in rtpoll_work_cb() 347 if (s->base_rate < new_rate + 20 && new_rate < s->base_rate + 20) in rtpoll_work_cb() 348 new_rate = s->base_rate; in rtpoll_work_cb() 350 … if (new_rate < (uint32_t) (current_rate*0.998) || new_rate > (uint32_t) (current_rate*1.002)) { in rtpoll_work_cb() 351 …fo("New rate of %u Hz not within 2‰ of %u Hz, forcing smaller adjustment", new_rate, current_rate); in rtpoll_work_cb() 352 … new_rate = PA_CLAMP(new_rate, (uint32_t) (current_rate*0.998), (uint32_t) (current_rate*1.002)); in rtpoll_work_cb() [all …]
|
/third_party/pulseaudio/src/pulsecore/filter/ |
D | lfe-filter.c | 148 void pa_lfe_filter_update_rate(pa_lfe_filter_t *f, uint32_t new_rate) { in pa_lfe_filter_update_rate() argument 150 float biquad_freq = f->crossover / (new_rate / 2); in pa_lfe_filter_update_rate() 156 f->ss.rate = new_rate; in pa_lfe_filter_update_rate() 158 … pa_log_warn("Crossover frequency (%f) outside range for sample rate %d", f->crossover, new_rate); in pa_lfe_filter_update_rate()
|
D | lfe-filter.h | 37 void pa_lfe_filter_update_rate(pa_lfe_filter_t *, uint32_t new_rate);
|
/third_party/pulseaudio/src/modules/ |
D | module-loopback.c | 286 double new_rate, new_rate_1, new_rate_2; in rate_controller() local 319 new_rate = new_rate_1; in rate_controller() 321 new_rate = new_rate_2; in rate_controller() 346 new_rate = new_rate + u->drift_compensation_rate + 0.5; in rate_controller() 348 if (new_rate > base_rate * 101 / 100) in rate_controller() 350 else if (new_rate < base_rate * 99 / 100) in rate_controller() 353 return (int)new_rate; in rate_controller() 417 uint32_t old_rate, base_rate, new_rate, run_hours; in adjust_rates() local 539 …new_rate = rate_controller(u, base_rate, old_rate, (int32_t)(filtered_latency - final_latency), la… in adjust_rates() 556 (int32_t)(new_rate - base_rate)); in adjust_rates() [all …]
|
D | module-combine-sink.c | 228 double new_rate, new_rate_1, new_rate_2; in rate_controller() local 241 new_rate = new_rate_2; in rate_controller() 243 new_rate = new_rate_1; in rate_controller() 245 return (uint32_t)(new_rate + 0.5); in rate_controller() 348 uint32_t new_rate; in adjust_rates() local 355 … new_rate = rate_controller(o, base_rate, o->sink_input->sample_spec.rate, latency_difference); in adjust_rates() 357 …ew rate is %u Hz; ratio is %0.3f.", o->sink_input->sink->name, new_rate, (double) new_rate / base_… in adjust_rates() 358 pa_sink_input_set_rate(o->sink_input, new_rate); in adjust_rates()
|
/third_party/ffmpeg/libavcodec/ |
D | audiotoolboxenc.c | 343 UInt32 new_rate = rate; in ffat_init_encoder() local 356 new_rate = rate; in ffat_init_encoder() 359 new_rate = range->mMaximum; in ffat_init_encoder() 361 new_rate = range->mMinimum; in ffat_init_encoder() 365 if (new_rate != rate) { in ffat_init_encoder() 367 "Bitrate %u not allowed; changing to %u\n", rate, new_rate); in ffat_init_encoder() 368 rate = new_rate; in ffat_init_encoder()
|
/third_party/gstreamer/gstplugins_good/gst/audiofx/ |
D | audiofirfilter.c | 197 gint new_rate = GST_AUDIO_INFO_RATE (info); in gst_audio_fir_filter_setup() local 199 if (GST_AUDIO_FILTER_RATE (self) != new_rate) { in gst_audio_fir_filter_setup() 201 gst_audio_fir_filter_signals[SIGNAL_RATE_CHANGED], 0, new_rate); in gst_audio_fir_filter_setup()
|
D | audioiirfilter.c | 213 gint new_rate = GST_AUDIO_INFO_RATE (info); in gst_audio_iir_filter_setup() local 215 if (GST_AUDIO_FILTER_RATE (self) != new_rate) { in gst_audio_iir_filter_setup() 217 gst_audio_iir_filter_signals[SIGNAL_RATE_CHANGED], 0, new_rate); in gst_audio_iir_filter_setup()
|
/third_party/ffmpeg/libavformat/ |
D | sga.c | 129 int new_rate; in sga_probe() local 133 new_rate = AV_RB16(src + offset + 8); in sga_probe() 135 sample_rate = new_rate; in sga_probe() 136 if (sample_rate == 0 || new_rate != sample_rate) in sga_probe()
|
/third_party/gstreamer/gstplugins_bad/ext/resindvd/ |
D | gstmpegdemux.c | 1299 guint64 scr, scr_adjusted, new_rate; in gst_flups_demux_parse_pack_start() local 1366 new_rate = (next32 & 0xfffffc00) >> 10; in gst_flups_demux_parse_pack_start() 1398 new_rate = (scr2 & 0x007ffffe) >> 1; in gst_flups_demux_parse_pack_start() 1400 new_rate *= MPEG_MUX_RATE_MULT; in gst_flups_demux_parse_pack_start() 1408 scr, scr_adjusted, new_rate, in gst_flups_demux_parse_pack_start() 1422 scr_rate_n = new_rate; in gst_flups_demux_parse_pack_start() 1436 scr, scr_adjusted, new_rate, in gst_flups_demux_parse_pack_start() 1502 demux->mux_rate = new_rate; in gst_flups_demux_parse_pack_start()
|
/third_party/pulseaudio/src/modules/echo-cancel/ |
D | module-echo-cancel.c | 340 uint32_t old_rate, base_rate, new_rate; in time_callback() local 370 new_rate = base_rate; in time_callback() 383 new_rate = base_rate; in time_callback() 387 if (new_rate > base_rate * 1.1 || new_rate < base_rate * 0.9) in time_callback() 388 new_rate = base_rate; in time_callback() 390 if (new_rate != old_rate) { in time_callback() 391 …a_log_info("Old rate %lu Hz, new rate %lu Hz", (unsigned long) old_rate, (unsigned long) new_rate); in time_callback() 393 pa_sink_input_set_rate(u->sink_input, new_rate); in time_callback()
|
/third_party/gstreamer/gstplugins_bad/tests/examples/ipcpipeline/ |
D | ipc-play.c | 232 gdouble new_rate = cur_rate + rate_step; in play_set_relative_playback_rate() local 235 new_rate *= -1.0; in play_set_relative_playback_rate() 237 play_set_playback_rate (pipeline, new_rate); in play_set_relative_playback_rate()
|
/third_party/gstreamer/gstplugins_bad/gst/mpegdemux/ |
D | gstmpegdemux.c | 1703 guint64 scr, scr_adjusted, new_rate; in gst_ps_demux_parse_pack_start() local 1769 new_rate = (next32 & 0xfffffc00) >> 10; in gst_ps_demux_parse_pack_start() 1801 new_rate = (scr2 & 0x007ffffe) >> 1; in gst_ps_demux_parse_pack_start() 1819 new_rate *= MPEG_MUX_RATE_MULT; in gst_ps_demux_parse_pack_start() 1827 scr, scr_adjusted, new_rate, in gst_ps_demux_parse_pack_start() 1840 scr_rate_n = new_rate; in gst_ps_demux_parse_pack_start() 1925 demux->mux_rate = new_rate; in gst_ps_demux_parse_pack_start()
|
/third_party/gstreamer/gstplugins_base/tools/ |
D | gst-play.c | 1075 gdouble new_rate = play->rate + rate_step; in play_set_relative_playback_rate() local 1078 new_rate *= -1.0; in play_set_relative_playback_rate() 1080 play_set_playback_rate (play, new_rate); in play_set_relative_playback_rate()
|
/third_party/gstreamer/gstplugins_base/tests/examples/seek/ |
D | jsseek.c | 2640 gdouble new_rate = (gdouble) (js->value) / 3000; in read_joystick() local 2641 g_print ("Got: %d (rate %g)\n", js->value, new_rate); in read_joystick() 2643 gtk_adjustment_set_value (shuttle_adjustment, new_rate); in read_joystick()
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 64661 long unsigned int new_rate; member 64679 long unsigned int new_rate; member
|
/third_party/libabigail/tests/data/test-diff-filter/ |
D | test-PR27569-v1.abi | 30170 …<var-decl name="new_rate" type-id="7359adad" visibility="default" filepath="drivers/clk/clk.c" lin… 31486 …<var-decl name="new_rate" type-id="7359adad" visibility="default" filepath="drivers/clk/clk.c" lin…
|
D | test-PR27569-v0.abi | 30142 …<var-decl name="new_rate" type-id="7359adad" visibility="default" filepath="drivers/clk/clk.c" lin… 31457 …<var-decl name="new_rate" type-id="7359adad" visibility="default" filepath="drivers/clk/clk.c" lin…
|