Sound: destructor should be virtual too (#19570)

* destructor should be virtual too

* empty commit, trigger tests
albatross
Dean Lee 2020-12-22 05:22:50 +08:00 committed by GitHub
parent 98ca428844
commit a56bbe1671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ static std::map<AudibleAlert, std::pair<const char *, int>> sound_map {
class Sound {
public:
virtual ~Sound() {}
virtual bool play(AudibleAlert alert) = 0;
virtual void stop() = 0;
virtual void setVolume(int volume) = 0;