This commit is contained in:
Mike Oliphant
2023-03-09 09:10:13 -08:00
parent c3cce3fa42
commit 2eff99c3ff
5 changed files with 16 additions and 68 deletions
+3 -6
View File
@@ -42,8 +42,7 @@ public:
// 3. The core DSP algorithm is run (This is what should probably be
// overridden in subclasses).
// 4. The output level is applied and the result stored to `output`.
virtual void process(const NAMSample *input, NAMSample *output,
const int num_channels, const int num_frames,
virtual void process(const NAMSample *input, NAMSample *output, const int num_frames,
const double input_gain, const double output_gain,
const std::unordered_map<std::string, double> &params);
// Anything to take care of before next buffer comes in.
@@ -74,8 +73,7 @@ protected:
// Apply the input gain
// Result populates this->_input_post_gain
void _apply_input_level_(const NAMSample *input, const int num_channels,
const int num_frames, const double gain);
void _apply_input_level_(const NAMSample *input, const int num_frames, const double gain);
// i.e. ensure the size is correct.
void _ensure_core_dsp_output_ready_();
@@ -86,8 +84,7 @@ protected:
virtual void _process_core_();
// Copy this->_core_dsp_output to output and apply the output volume
void _apply_output_level_(NAMSample *output, const int num_channels,
const int num_frames, const double gain);
void _apply_output_level_(NAMSample *output, const int num_frames, const double gain);
};
// Class where an input buffer is kept so that long-time effects can be