mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +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
|
@ -20,7 +20,7 @@ public:
|
|||
Delay(NonnullRefPtr<Transport>);
|
||||
|
||||
private:
|
||||
virtual Signal process_impl(Signal const&) override;
|
||||
virtual void process_impl(Signal const&, Signal&) override;
|
||||
void handle_delay_time_change();
|
||||
|
||||
ProcessorRangeParameter m_delay_decay;
|
||||
|
@ -38,7 +38,7 @@ public:
|
|||
Mastering(NonnullRefPtr<Transport>);
|
||||
|
||||
private:
|
||||
virtual Signal process_impl(Signal const&) override;
|
||||
virtual void process_impl(Signal const&, Signal&) override;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue