mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:57:34 +00:00
SoundPlayer: Add start_new_file() to VisualizationWidget's API
This adds a new start_new_file() function to VisualizationWidget which is called when the player starts a new file, passing the filename of the file. This allows VisualizationWidget subclasses to do any setup needed when a new file is started.
This commit is contained in:
parent
064cfd6cb7
commit
2e1c017bce
3 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ class VisualizationWidget : public GUI::Frame {
|
|||
public:
|
||||
virtual void set_buffer(RefPtr<Audio::Buffer> buffer) = 0;
|
||||
virtual void set_samplerate(int) { }
|
||||
virtual void start_new_file(StringView) { }
|
||||
|
||||
protected:
|
||||
VisualizationWidget() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue