Skip to content

Commit bdf5053

Browse files
committed
Fix return value
1 parent 0aebad3 commit bdf5053

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ViperContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData
567567
uint16_t high = *(uint16_t *) (pCmdParam->data + vOffset + sizeof(uint16_t));
568568
VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_X_COEFFICIENTS called with low = %d, high = %d", low, high);
569569
viper.dynamicSystem.SetXCoeffs(low, high);
570+
return 0;
570571
}
571572
case PARAM_SET_DYNAMIC_SYSTEM_Y_COEFFICIENTS: {
572573
if (pCmdParam->vsize != sizeof(uint16_t) * 2) {
@@ -577,6 +578,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData
577578
uint16_t high = *(uint16_t *) (pCmdParam->data + vOffset + sizeof(uint16_t));
578579
VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_Y_COEFFICIENTS called with low = %d, high = %d", low, high);
579580
viper.dynamicSystem.SetYCoeffs(low, high);
581+
return 0;
580582
}
581583
case PARAM_SET_DYNAMIC_SYSTEM_SIDE_GAIN: {
582584
if (pCmdParam->vsize != sizeof(uint8_t) * 2) {
@@ -587,6 +589,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData
587589
uint8_t gainY = *(uint8_t *) (pCmdParam->data + vOffset + sizeof(uint8_t));
588590
VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_SIDE_GAIN called with gainX = %d, gainY = %d", gainX, gainY);
589591
viper.dynamicSystem.SetSideGain(static_cast<float>(gainX) / 100.0f, static_cast<float>(gainY) / 100.0f);
592+
return 0;
590593
}
591594
case PARAM_SET_DYNAMIC_SYSTEM_STRENGTH: {
592595
if (pCmdParam->vsize != sizeof(uint16_t)) {
@@ -596,6 +599,7 @@ int32_t ViperContext::handleSetParam(effect_param_t *pCmdParam, void *pReplyData
596599
uint16_t strength = *(uint16_t *) (pCmdParam->data + vOffset);
597600
VIPER_LOGD("handleSetParam: PARAM_SET_DYNAMIC_SYSTEM_STRENGTH called with strength = %d", strength);
598601
viper.dynamicSystem.SetBassGain(static_cast<float>(strength) / 100.0f);
602+
return 0;
599603
}
600604
default: {
601605
VIPER_LOGE("handleSetParam: called with unknown key: %d", key);

0 commit comments

Comments
 (0)