summaryrefslogtreecommitdiff
path: root/src/pulsecore/mix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/mix.c')
-rw-r--r--src/pulsecore/mix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pulsecore/mix.c b/src/pulsecore/mix.c
index 03c71f0a1..06b22bd1d 100644
--- a/src/pulsecore/mix.c
+++ b/src/pulsecore/mix.c
@@ -32,6 +32,7 @@
#include <pulsecore/g711.h>
#include <pulsecore/endianmacros.h>
+#include "cpu.h"
#include "mix.h"
#define VOLUME_PADDING 32
@@ -606,6 +607,13 @@ static pa_do_mix_func_t do_mix_table[] = {
[PA_SAMPLE_S24_32RE] = (pa_do_mix_func_t) pa_mix_s24_32re_c
};
+void pa_mix_func_init(const pa_cpu_info *cpu_info) {
+ if (cpu_info->force_generic_code)
+ do_mix_table[PA_SAMPLE_S16NE] = (pa_do_mix_func_t) pa_mix_generic_s16ne;
+ else
+ do_mix_table[PA_SAMPLE_S16NE] = (pa_do_mix_func_t) pa_mix_s16ne_c;
+}
+
size_t pa_mix(
pa_mix_info streams[],
unsigned nstreams,