mirror of
https://github.com/AndroidAudioMods/ViPERFX_RE.git
synced 2025-06-08 10:39:29 +08:00
33 lines
769 B
C
33 lines
769 B
C
![]() |
#pragma once
|
||
|
|
||
|
#include <vector>
|
||
|
#include <cstddef>
|
||
|
#include "essential.h"
|
||
|
#include "viper/ViPER.h"
|
||
|
|
||
|
class ViperContext {
|
||
|
public:
|
||
|
effect_config_t config;
|
||
|
bool isConfigValid;
|
||
|
|
||
|
// Processing buffer
|
||
|
std::vector<float> buffer;
|
||
|
size_t bufferFrameCount;
|
||
|
|
||
|
// Viper
|
||
|
bool enabled;
|
||
|
ViPER viper;
|
||
|
|
||
|
ViperContext();
|
||
|
|
||
|
int32_t handleCommand(uint32_t cmdCode, uint32_t cmdSize, void *pCmdData, uint32_t *replySize, void *pReplyData);
|
||
|
|
||
|
int32_t process(audio_buffer_t *inBuffer, audio_buffer_t *outBuffer);
|
||
|
|
||
|
int handleSetConfig(effect_config_t *newConfig);
|
||
|
|
||
|
int32_t handleSetParam(effect_param_t *pCmdParam, void *pReplyData);
|
||
|
|
||
|
int32_t handleGetParam(effect_param_t *pCmdParam, effect_param_t *pReplyParam, uint32_t *pReplySize);
|
||
|
};
|