This commit is contained in:
Iscle 2022-10-03 23:52:22 +02:00
parent 82ecf8ae5f
commit 2d85d11792
2 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,14 @@ add_compile_definitions(VERSION_MAJOR=1)
add_compile_definitions(VERSION_MINOR=0)
add_compile_definitions(VERSION_CODENAME="Reworked")
# NDK Settings
if (NOT ANDROID_ABI)
set(ANDROID_ABI arm64-v8a)
endif()
if (NOT ANDROID_PLATFORM)
set(ANDROID_PLATFORM android-23)
endif()
# KISS FFT
set(KISSFFT_PKGCONFIG OFF)
set(KISSFFT_STATIC ON)

View File

@ -142,7 +142,7 @@ static int32_t Viper_ICommand(effect_handle_t self,
return 0;
}
case EFFECT_CMD_SET_PARAM: {
auto pCmdParam = (effect_param_t *) pCmdData;
auto *pCmdParam = reinterpret_cast<effect_param_t *>(pCmdData);
// The value offset of an effect parameter is computed by rounding up
// the parameter size to the next 32 bit alignment.
uint32_t vOffset = ((pCmdParam->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * sizeof(int32_t);
@ -179,7 +179,6 @@ static int32_t Viper_ICommand(effect_handle_t self,
case EFFECT_CMD_GET_PARAM: {
auto *pCmdParam = reinterpret_cast<effect_param_t *>(pCmdData);
auto *pReplyParam = reinterpret_cast<effect_param_t *>(pReplyData);
// The value offset of an effect parameter is computed by rounding up
// the parameter size to the next 32 bit alignment.
uint32_t vOffset = ((pCmdParam->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * sizeof(int32_t);