From bdf5053968124d1e03c104defc8ea735c1114747 Mon Sep 17 00:00:00 2001 From: Iscle Date: Wed, 10 Apr 2024 00:41:11 +0200 Subject: [PATCH] Fix return value --- src/ViperContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ViperContext.cpp b/src/ViperContext.cpp index c288cdb..414866e 100644 --- a/src/ViperContext.cpp +++ b/src/ViperContext.cpp @@ -567,6 +567,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData uint16_t high = *(uint16_t *) (pCmdParam->data + vOffset + sizeof(uint16_t)); VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_X_COEFFICIENTS called with low = %d, high = %d", low, high); viper.dynamicSystem.SetXCoeffs(low, high); + return 0; } case PARAM_SET_DYNAMIC_SYSTEM_Y_COEFFICIENTS: { if (pCmdParam->vsize != sizeof(uint16_t) * 2) { @@ -577,6 +578,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData uint16_t high = *(uint16_t *) (pCmdParam->data + vOffset + sizeof(uint16_t)); VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_Y_COEFFICIENTS called with low = %d, high = %d", low, high); viper.dynamicSystem.SetYCoeffs(low, high); + return 0; } case PARAM_SET_DYNAMIC_SYSTEM_SIDE_GAIN: { if (pCmdParam->vsize != sizeof(uint8_t) * 2) { @@ -587,6 +589,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData uint8_t gainY = *(uint8_t *) (pCmdParam->data + vOffset + sizeof(uint8_t)); VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_SIDE_GAIN called with gainX = %d, gainY = %d", gainX, gainY); viper.dynamicSystem.SetSideGain(static_cast(gainX) / 100.0f, static_cast(gainY) / 100.0f); + return 0; } case PARAM_SET_DYNAMIC_SYSTEM_STRENGTH: { if (pCmdParam->vsize != sizeof(uint16_t)) { @@ -596,6 +599,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData uint16_t strength = *(uint16_t *) (pCmdParam->data + vOffset); VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_STRENGTH called with strength = %d", strength); viper.dynamicSystem.SetBassGain(static_cast(strength) / 100.0f); + return 0; } default: { VIPER_LOGE("handleSetParam: called with unknown key: %d", key);