summaryrefslogtreecommitdiff
path: root/spa/plugins/audiomixer/plugin.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-10-03 16:20:12 +0200
committerWim Taymans <wtaymans@redhat.com>2019-10-03 16:20:12 +0200
commit0ecbe4844e4bceeb5684bccdd5bdee3ecd6b4c2f (patch)
tree6d68758c82c0496261827df6c76333645ca61f38 /spa/plugins/audiomixer/plugin.c
parent27eabede3592315ac6fa011afe385f70d83c589b (diff)
mixer: Move floatmix to the audio mixer plugin
Move floatmix to the audiomixer plugin and change the name to AUDIO_MIXER_DSP. Add runtime selectable sse and sse2 optimizations. Load the port mixer plugin dynamically based on the factory_name. Add some more debug
Diffstat (limited to 'spa/plugins/audiomixer/plugin.c')
-rw-r--r--spa/plugins/audiomixer/plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/spa/plugins/audiomixer/plugin.c b/spa/plugins/audiomixer/plugin.c
index 760920ab..3915425f 100644
--- a/spa/plugins/audiomixer/plugin.c
+++ b/spa/plugins/audiomixer/plugin.c
@@ -27,6 +27,7 @@
#include <spa/support/plugin.h>
extern const struct spa_handle_factory spa_audiomixer_factory;
+extern const struct spa_handle_factory spa_mixer_dsp_factory;
SPA_EXPORT
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
@@ -38,6 +39,9 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
case 0:
*factory = &spa_audiomixer_factory;
break;
+ case 1:
+ *factory = &spa_mixer_dsp_factory;
+ break;
default:
return 0;
}