mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
LibDSP: Actually implement the Mastering processor
This can now handle mute, volume control and panning.
This commit is contained in:
parent
281b319588
commit
d5166ddbcf
Notes:
sideshowbarker
2024-07-17 08:35:56 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: d5166ddbcf
Pull-request: https://github.com/SerenityOS/serenity/pull/14664
2 changed files with 32 additions and 2 deletions
|
@ -37,8 +37,16 @@ class Mastering : public EffectProcessor {
|
|||
public:
|
||||
Mastering(NonnullRefPtr<Transport>);
|
||||
|
||||
// The mastering processor can be used by the track and therefore needs to be able to write to a fixed array directly.
|
||||
// Otherwise, Track needs to do more unnecessary sample data copies.
|
||||
void process_to_fixed_array(Signal const&, FixedArray<Sample>&);
|
||||
|
||||
private:
|
||||
virtual void process_impl(Signal const&, Signal&) override;
|
||||
|
||||
ProcessorRangeParameter m_pan;
|
||||
ProcessorRangeParameter m_volume;
|
||||
ProcessorBooleanParameter m_muted;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue