1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:27:35 +00:00

SoundPlayer: Adapt the existing SampleWidget visualization to

the new abstraction
This commit is contained in:
Cesar Torres 2021-03-21 12:58:00 +01:00 committed by Andreas Kling
parent 876c62409a
commit 45e928bfb2
2 changed files with 5 additions and 3 deletions

View file

@ -73,7 +73,7 @@ void SampleWidget::paint_event(GUI::PaintEvent& event)
}
}
void SampleWidget::set_buffer(Audio::Buffer* buffer)
void SampleWidget::set_buffer(RefPtr<Audio::Buffer> buffer)
{
if (m_buffer == buffer)
return;