Home
last modified time | relevance | path

Searched refs:PA_CLAMP (Results 1 – 12 of 12) sorted by relevance

/third_party/pulseaudio/src/pulse/
Dgccmacro.h143 #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/
Dmodule-position-event-sounds.c64 *f = PA_CLAMP(*f, 0.0, 1.0); in parse_pos()
Dmodule-loopback.c647 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()
Dmodule-combine-sink.c257 … 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/
Dmodule-rtp-recv.c334 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/
Dsource-output.c913 … 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()
Dsink-input.c1207 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()
Dsource.c2393 …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()
Dsink.c3068 …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/
Dalsa-source.c295 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()
Dalsa-sink.c323 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/
DNEWS65 * New macros: PA_LIKELY(), PA_UNLIKELY(), PA_CLAMP() and PA_CLAMP_UNLIKELY()