mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:17:36 +00:00
LibAudio+LibDSP: Switch samples to 32-bit float instead of 64-bit float
This has been overkill from the start, and it has been bugging me for a long time. With this change, we're probably a bit slower on most platforms but save huge amounts of space with all in-memory sample datastructures.
This commit is contained in:
parent
39c0f31009
commit
19a4b820c4
16 changed files with 329 additions and 329 deletions
|
@ -14,7 +14,7 @@ SampleWidget::SampleWidget()
|
|||
MUST(set_render_sample_count(512));
|
||||
}
|
||||
|
||||
void SampleWidget::render(GUI::PaintEvent& event, FixedArray<double> const& samples)
|
||||
void SampleWidget::render(GUI::PaintEvent& event, FixedArray<float> const& samples)
|
||||
{
|
||||
GUI::Frame::paint_event(event);
|
||||
GUI::Painter painter(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue