mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:57:44 +00:00
LibDSP: Refactor OOP non-functionally
* Don't inherit from Core::Object everywhere, that's overkill. Use RefCounted instead. * Change some constructor visibilites to facilitate the above. * default-implement all virtual destructors if possible. * Drive-by include hygiene.
This commit is contained in:
parent
3cfa9b63b5
commit
4a6ebb8beb
9 changed files with 48 additions and 46 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
Track::Track(u32 const& time)
|
||||
: m_time(time)
|
||||
, m_temporary_transport(LibDSP::Transport::construct(120, 4))
|
||||
, m_temporary_transport(make_ref_counted<LibDSP::Transport>(120, 4))
|
||||
, m_delay(make_ref_counted<LibDSP::Effects::Delay>(m_temporary_transport))
|
||||
, m_synth(make_ref_counted<LibDSP::Synthesizers::Classic>(m_temporary_transport))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue