Bump ViPER version to v1.0.0
Some checks failed
build / build (arm64-v8a) (push) Failing after 20s
build / build (armeabi-v7a) (push) Failing after 10s
build / build (x86) (push) Failing after 12s
build / build (x86_64) (push) Failing after 11s
build / package (push) Has been skipped

This commit is contained in:
Iscle 2025-05-02 01:37:44 +02:00
parent 9e9008d76a
commit 37d723ff09
4 changed files with 14 additions and 10 deletions

View File

@ -60,7 +60,7 @@ cc_defaults {
],
cflags: [
"-O2",
"-DVIPER_VERSION=20240314",
"-DVIPER_VERSION=\"v1.0.0\"",
"-Wno-unused-parameter",
"-DBACKEND_NDK",

View File

@ -1,7 +1,11 @@
#pragma once
#ifndef VIPER_VERSION
#define VIPER_VERSION "vX.X.X"
#endif
namespace ViPER4Android {
static const char *const kName = "ViPER4Android";
static const char *const kName = "ViPER4Android " VIPER_VERSION;
static const char *const kImplementor = "Iscle, Martmists, ViPER ACOUSTIC";
static const char *const kTypeString = "b9bc100c-26cd-42e6-acb6-cad8c3f778de";

View File

@ -636,13 +636,13 @@ int32_t ViPERContext::handleGetParam(effect_param_t *pCmdParam, effect_param_t *
*pReplySize = sizeof(effect_param_t) + pReplyParam->psize + vOffset + pReplyParam->vsize;
return 0;
}
case PARAM_GET_VERSION: {
pReplyParam->status = 0;
pReplyParam->vsize = sizeof(uint32_t);
*(uint32_t *) (pReplyParam->data + vOffset) = VIPER_VERSION;
*pReplySize = sizeof(effect_param_t) + pReplyParam->psize + vOffset + pReplyParam->vsize;
return 0;
}
// case PARAM_GET_VERSION: {
// pReplyParam->status = 0;
// pReplyParam->vsize = sizeof(uint32_t);
// *(uint32_t *) (pReplyParam->data + vOffset) = VIPER_VERSION;
// *pReplySize = sizeof(effect_param_t) + pReplyParam->psize + vOffset + pReplyParam->vsize;
// return 0;
// }
case PARAM_GET_DISABLE_REASON: {
pReplyParam->status = 0;
pReplyParam->vsize = sizeof(int32_t);

View File

@ -12,7 +12,7 @@ ViPER::ViPER() :
gainL(1.0),
gainR(1.0) {
ALOGI("Welcome to ViPER FX");
ALOGI("Current version is %d", VIPER_VERSION);
// ALOGI("Current version is %d", VIPER_VERSION);
this->convolver.SetEnable(false);
this->convolver.SetSamplingRate(this->samplingRate);