else if (pa_streq(request_method, "reference_copy"))
method = PA_PROCESSOR_REFERENCE_COPY;
else
- /* request_method could be had 'default' */
- method = PA_PROCESSOR_METHOD_DEFAULT;
+#ifdef SUPPORT_METHOD_WEBRTC
+ method = PA_PROCESSOR_WEBRTC;
+#else
+ method = PA_PROCESSOR_SPEEX;
+#endif
- pa_log_info("processing method is selected. request_method(%s), method_to_string(%s)",
- request_method, pa_processor_method_to_string(method));
+ pa_log_info("processing method is selected. method(%d), request_method(%s), method_to_string(%s)",
+ method, request_method, pa_processor_method_to_string(method));
return method;
}
#include <pulse/channelmap.h>
#include <pulse/sample.h>
+/* These are used as an index to choose a method in method_table. Keep this order */
typedef enum {
- PA_PROCESSOR_ADRIAN,
- PA_PROCESSOR_REFERENCE_COPY,
PA_PROCESSOR_SPEEX,
+ PA_PROCESSOR_ADRIAN,
#ifdef SUPPORT_METHOD_WEBRTC
PA_PROCESSOR_WEBRTC,
- PA_PROCESSOR_METHOD_DEFAULT = PA_PROCESSOR_WEBRTC,
-#else
- PA_PROCESSOR_METHOD_DEFAULT = PA_PROCESSOR_SPEEX,
#endif
+ PA_PROCESSOR_REFERENCE_COPY,
PA_PROCESSOR_METHOD_MAX,
} pa_processor_method_t;