mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-06-17 00:43:59 +02:00
mono i/o
This commit is contained in:
@@ -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> ¶ms);
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user