Searched refs:PA_CLAMP (Results 1 – 12 of 12) sorted by relevance
/third_party/pulseaudio/src/pulse/ |
D | gccmacro.h | 143 #define PA_CLAMP(x, low, high) \ macro 151 #define PA_CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) macro
|
/third_party/pulseaudio/src/modules/ |
D | module-position-event-sounds.c | 64 *f = PA_CLAMP(*f, 0.0, 1.0); in parse_pos()
|
D | module-loopback.c | 647 latency = PA_CLAMP(requested_latency , u->min_source_latency, u->max_source_latency); in set_source_output_latency() 1021 latency = PA_CLAMP(requested_latency , u->min_sink_latency, u->max_sink_latency); in set_sink_input_latency()
|
D | module-combine-sink.c | 257 … new_rate = PA_CLAMP(new_rate, (uint32_t) (current_rate*0.998), (uint32_t) (current_rate*1.002)); in adjust_rates()
|
/third_party/pulseaudio/src/modules/rtp/ |
D | module-rtp-recv.c | 334 alpha = PA_CLAMP(2 * (ratio + fabs(ratio)) / (4 + ratio*ratio), 0.02, 0.8); 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()
|
/third_party/pulseaudio/src/pulsecore/ |
D | source-output.c | 913 … usec = PA_CLAMP(usec, o->source->thread_info.min_latency, o->source->thread_info.max_latency); in pa_source_output_set_requested_latency_within_thread() 941 usec = PA_CLAMP(usec, min_latency, max_latency); in pa_source_output_set_requested_latency()
|
D | sink-input.c | 1207 usec = PA_CLAMP(usec, i->sink->thread_info.min_latency, i->sink->thread_info.max_latency); in pa_sink_input_set_requested_latency_within_thread() 1235 usec = PA_CLAMP(usec, min_latency, max_latency); in pa_sink_input_set_requested_latency()
|
D | source.c | 2393 …return PA_CLAMP(s->thread_info.fixed_latency, s->thread_info.min_latency, s->thread_info.max_laten… in pa_source_get_requested_latency_within_thread() 2404 result = PA_CLAMP(result, s->thread_info.min_latency, s->thread_info.max_latency); in pa_source_get_requested_latency_within_thread()
|
D | sink.c | 3068 …return PA_CLAMP(s->thread_info.fixed_latency, s->thread_info.min_latency, s->thread_info.max_laten… in pa_sink_get_requested_latency_within_thread() 3085 result = PA_CLAMP(result, s->thread_info.min_latency, s->thread_info.max_latency); in pa_sink_get_requested_latency_within_thread()
|
/third_party/pulseaudio/src/modules/alsa/ |
D | alsa-source.c | 295 u->min_sleep = PA_CLAMP(u->min_sleep, u->frame_size, max_use_2); in fix_min_sleep_wakeup() 298 u->min_wakeup = PA_CLAMP(u->min_wakeup, u->frame_size, max_use_2); in fix_min_sleep_wakeup()
|
D | alsa-sink.c | 323 u->min_sleep = PA_CLAMP(u->min_sleep, u->frame_size, max_use_2); in fix_min_sleep_wakeup() 326 u->min_wakeup = PA_CLAMP(u->min_wakeup, u->frame_size, max_use_2); in fix_min_sleep_wakeup()
|
/third_party/pulseaudio/ |
D | NEWS | 65 * New macros: PA_LIKELY(), PA_UNLIKELY(), PA_CLAMP() and PA_CLAMP_UNLIKELY()
|