mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
SoundPlayer: Add 'mute' methods to Player
These methods allow us to mute/unmute the player without needing to modify the volume level that it has.
This commit is contained in:
parent
fb109ab3b4
commit
8f2161c0ee
4 changed files with 32 additions and 0 deletions
|
@ -42,6 +42,7 @@ public:
|
|||
virtual void playlist_loaded(StringView, bool) override;
|
||||
virtual void audio_load_error(StringView path, StringView error_reason) override;
|
||||
virtual void volume_changed(double) override;
|
||||
virtual void mute_changed(bool) override;
|
||||
virtual void total_samples_changed(int) override;
|
||||
virtual void sound_buffer_played(RefPtr<Audio::Buffer>, int sample_rate, int samples_played) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue