mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-08 02:29:40 +08:00
Fix reset command
This commit is contained in:
parent
8107aee217
commit
68168ac2a0
@ -562,12 +562,7 @@ int32_t ViperContext::handleCommand(uint32_t cmdCode, uint32_t cmdSize, void *pC
|
||||
return 0;
|
||||
}
|
||||
case EFFECT_CMD_RESET: {
|
||||
if (replySize != sizeof(int32_t) || pReplyData == nullptr) {
|
||||
VIPER_LOGE("EFFECT_CMD_RESET called with invalid replySize = %d, pReplyData = %p, expected replySize = %zu", replySize, pReplyData, sizeof(int32_t));
|
||||
return -EINVAL;
|
||||
}
|
||||
viper.reset();
|
||||
SET(int32_t, pReplyData, 0);
|
||||
return 0;
|
||||
}
|
||||
case EFFECT_CMD_ENABLE: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user