ViPERFX_RE/src/cpp/Effect.h

30 lines
636 B
C
Raw Normal View History

2021-07-27 09:47:15 +02:00
//
// Created by mart on 7/25/21.
//
#pragma once
#include <cstdint>
#include "essential.h"
2021-07-27 09:47:15 +02:00
class Effect {
public:
Effect();
~Effect();
virtual int32_t command(uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, uint32_t* replySize, void* pReplyData);
int32_t process(audio_buffer_s *in, audio_buffer_s *out);
int32_t configure(effect_config_t* config);
bool enabled;
bool configureOk;
uint32_t sampleRate;
2021-07-29 23:56:13 +02:00
effect_config_t config;
2021-07-27 09:47:15 +02:00
// Misc data here?
// TODO: Figure out what buffer is used for
float* buffer;
uint32_t bufferSize;
void* instance; // type: ProcessUnit_FX
};