mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:47:46 +00:00
LibDSP+Piano: Convert DSP APIs to accept entire sample ranges
This has mainly performance benefits, so that we only need to call into all processors once for every audio buffer segment. It requires adjusting quite some logic in most processors and in Track, as we have to consider a larger collection of notes and samples at each step. There's some cautionary TODOs in the currently unused LibDSP tracks because they don't do things properly yet.
This commit is contained in:
parent
4d65607649
commit
9035d9e845
9 changed files with 123 additions and 75 deletions
|
@ -47,7 +47,7 @@ public:
|
|||
Waveform wave() const { return m_waveform.value(); }
|
||||
|
||||
private:
|
||||
virtual Signal process_impl(Signal const&) override;
|
||||
virtual void process_impl(Signal const&, Signal&) override;
|
||||
|
||||
double volume_from_envelope(Envelope const&) const;
|
||||
double wave_position(u8 note);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue