/third_party/pulseaudio/src/modules/rtp/ |
D | module-rtp-recv.c | 277 uint32_t new_rate; in rtpoll_work_cb() local 339 …new_rate = (uint32_t) ((double) (RATE_UPDATE_INTERVAL + latency/4 - s->intended_latency/4) / (doub… in rtpoll_work_cb() 342 if (new_rate < (uint32_t) (s->base_rate*0.8) || new_rate > (uint32_t) (s->base_rate*1.25)) { in rtpoll_work_cb() 343 … pa_log_warn("Sample rates too different, not adjusting (%u vs. %u).", s->base_rate, new_rate); in rtpoll_work_cb() 344 new_rate = s->base_rate; in rtpoll_work_cb() 346 if (s->base_rate < new_rate + 20 && new_rate < s->base_rate + 20) in rtpoll_work_cb() 347 new_rate = s->base_rate; in rtpoll_work_cb() 349 … if (new_rate < (uint32_t) (current_rate*0.998) || new_rate > (uint32_t) (current_rate*1.002)) { in rtpoll_work_cb() 350 …fo("New rate of %u Hz not within 2‰ of %u Hz, forcing smaller adjustment", new_rate, current_rate); in rtpoll_work_cb() 351 … 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/modules/ |
D | module-combine-sink.c | 237 uint32_t new_rate = base_rate; in adjust_rates() local 246 …new_rate += (uint32_t) (((double) o->total_latency - (double) target_latency) / (double) u->adjust… in adjust_rates() 248 if (new_rate < (uint32_t) (base_rate*0.8) || new_rate > (uint32_t) (base_rate*1.25)) { in adjust_rates() 249 … rates too different, not adjusting (%u vs. %u).", o->sink_input->sink->name, base_rate, new_rate); in adjust_rates() 250 new_rate = base_rate; in adjust_rates() 252 if (base_rate < new_rate + 20 && new_rate < base_rate + 20) in adjust_rates() 253 new_rate = base_rate; in adjust_rates() 255 … if (new_rate < (uint32_t) (current_rate*0.998) || new_rate > (uint32_t) (current_rate*1.002)) { in adjust_rates() 256 …ithin 2‰ of %u Hz, forcing smaller adjustment", o->sink_input->sink->name, new_rate, current_rate); in adjust_rates() 257 … new_rate = PA_CLAMP(new_rate, (uint32_t) (current_rate*0.998), (uint32_t) (current_rate*1.002)); in adjust_rates() [all …]
|
D | module-loopback.c | 247 uint32_t new_rate; in rate_controller() local 253 new_rate = base_rate * (1.0 + (double)latency_difference_usec / min_cycles / adjust_time); in rate_controller() 255 return new_rate; in rate_controller() 319 uint32_t old_rate, base_rate, new_rate, run_hours; in adjust_rates() local 414 new_rate = rate_controller(base_rate, u->real_adjust_time, latency_difference); in adjust_rates() 419 pa_sink_input_set_rate(u->sink_input, new_rate); in adjust_rates() 420 …ebug("[%s] Updated sampling rate to %lu Hz.", u->sink_input->sink->name, (unsigned long) new_rate); in adjust_rates()
|
/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/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/libnl/lib/route/link/ |
D | sriov.c | 370 int err = 0, new_rate = 0; in sriov_fill_vfinfo() local 429 new_rate = 1; in sriov_fill_vfinfo() 433 new_rate = 1; in sriov_fill_vfinfo() 435 if (new_rate) in sriov_fill_vfinfo()
|
/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()
|