2020-04-26 14:48:47 +00:00
|
|
|
#pragma once
|
|
|
|
#include "resources.h"
|
|
|
|
|
|
|
|
class Processor {
|
|
|
|
public:
|
|
|
|
Processor() {};
|
|
|
|
|
|
|
|
void Process(int16_t cvs[], uint16_t* outs);
|
|
|
|
|
|
|
|
inline void set_volume_offset(uint16_t volume_offset_)
|
|
|
|
{
|
|
|
|
volume_offset = volume_offset_;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void set_pan_offset(int16_t pan_offset_)
|
|
|
|
{
|
|
|
|
pan_offset = pan_offset_;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void set_muted(bool m)
|
|
|
|
{
|
|
|
|
mute = m;
|
|
|
|
}
|
|
|
|
|
2020-04-26 16:29:22 +00:00
|
|
|
uint16_t previous_volume() {
|
|
|
|
return previous_vol;
|
|
|
|
}
|
|
|
|
|
2020-04-26 14:48:47 +00:00
|
|
|
private:
|
|
|
|
uint16_t volume_offset = 0;
|
|
|
|
int16_t pan_offset = 0;
|
2020-04-26 16:29:22 +00:00
|
|
|
uint16_t previous_vol;
|
2020-04-26 14:48:47 +00:00
|
|
|
bool mute = false;
|
|
|
|
};
|