diff options
Diffstat (limited to 'Userland/Applications/Piano/WaveWidget.cpp')
-rw-r--r-- | Userland/Applications/Piano/WaveWidget.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Applications/Piano/WaveWidget.cpp b/Userland/Applications/Piano/WaveWidget.cpp index 25f1df548f..1a9edf03d9 100644 --- a/Userland/Applications/Piano/WaveWidget.cpp +++ b/Userland/Applications/Piano/WaveWidget.cpp @@ -33,9 +33,10 @@ void WaveWidget::paint_event(GUI::PaintEvent& event) painter.fill_rect(frame_inner_rect(), Color::Black); painter.translate(frame_thickness(), frame_thickness()); - Color left_wave_color = left_wave_colors[m_track_manager.current_track().synth()->wave()]; - Color right_wave_color = right_wave_colors[m_track_manager.current_track().synth()->wave()]; - auto buffer = m_track_manager.buffer(); + Color left_wave_color = left_wave_colors[m_track_manager.current_track()->synth()->wave()]; + Color right_wave_color = right_wave_colors[m_track_manager.current_track()->synth()->wave()]; + // FIXME: We can't get the last buffer from the track manager anymore + auto buffer = FixedArray<Music::Sample>::must_create_but_fixme_should_propagate_errors(sample_count); double width_scale = static_cast<double>(frame_inner_rect().width()) / buffer.size(); int prev_x = 0; |