mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
SoundPlayer: Add samplerate variable to visualizations
also fix conflict
This commit is contained in:
parent
2e28b8ebcc
commit
fd126578d9
12 changed files with 51 additions and 311 deletions
|
@ -38,10 +38,12 @@ class BarsVisualizationWidget final : public GUI::Frame
|
|||
public:
|
||||
~BarsVisualizationWidget() override;
|
||||
void set_buffer(RefPtr<Audio::Buffer> buffer) override;
|
||||
void set_samplerate(int samplerate) override;
|
||||
|
||||
private:
|
||||
void set_buffer(RefPtr<Audio::Buffer> buffer, int samples_to_use);
|
||||
BarsVisualizationWidget();
|
||||
void set_buffer(RefPtr<Audio::Buffer> buffer, int samples_to_use);
|
||||
|
||||
void paint_event(GUI::PaintEvent&) override;
|
||||
void mousedown_event(GUI::MouseEvent& event) override;
|
||||
|
||||
|
@ -49,6 +51,7 @@ private:
|
|||
Vector<int> m_gfx_falling_bars;
|
||||
int m_last_id;
|
||||
int m_sample_count;
|
||||
int m_samplerate;
|
||||
bool m_is_using_last;
|
||||
bool m_adjust_frequencies;
|
||||
RefPtr<GUI::Menu> m_context_menu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue