summaryrefslogtreecommitdiffstats
path: root/src/modules/module-ladspa-sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-11-09 14:20:12 +0000
committerLennart Poettering <lennart@poettering.net>2007-11-09 14:20:12 +0000
commitc1985c2acc43f5d2c23e1e736588c5ef3a398a17 (patch)
tree0a81208821296b6de34f4dbcbfd8bc2503989893 /src/modules/module-ladspa-sink.c
parent01490319d38c2f90749f9b7b555f332e2e7f3da9 (diff)
replace a few CLAMPs by PA_CLAMP_UNLIKELY
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2040 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/modules/module-ladspa-sink.c')
-rw-r--r--src/modules/module-ladspa-sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
index 0265d971..6ed392ce 100644
--- a/src/modules/module-ladspa-sink.c
+++ b/src/modules/module-ladspa-sink.c
@@ -177,14 +177,14 @@ static int sink_input_peek_cb(pa_sink_input *i, size_t length, pa_memchunk *chun
p = src + c;
q = u->input;
for (j = 0; j < n; j++, p += u->channels, q++)
- *q = CLAMP(*p, -1.0, 1.0);
+ *q = PA_CLAMP_UNLIKELY(*p, -1.0, 1.0);
u->descriptor->run(u->handle[c], n);
q = u->output;
p = dst + c;
for (j = 0; j < n; j++, q++, p += u->channels)
- *p = CLAMP(*q, -1.0, 1.0);
+ *p = PA_CLAMP_UNLIKELY(*q, -1.0, 1.0);
}
pa_memblock_release(tchunk.memblock);