File indexing completed on 2024-05-05 04:02:27

0001 /*******************************************************************************
0002  *   KBlocks, a falling blocks game by KDE                                     *
0003  *   SPDX-FileCopyrightText: 2009-2021 Julian Helfferich <julian.helfferich@mailbox.org> *
0004  *                                                                             *
0005  *   SPDX-License-Identifier: GPL-2.0-or-later
0006  ******************************************************************************/
0007 #ifndef MOCKSOUND_H
0008 #define MOCKSOUND_H
0009 
0010 #include "SoundInterface.h"
0011 
0012 class MockSound : public SoundInterface
0013 {
0014 public:
0015     MockSound() = default;
0016     ~MockSound() override = default;
0017 
0018 public:
0019     bool loadTheme(const KGameTheme *) override { return false; }
0020     void setSoundsEnabled(bool) override {}
0021     void playSound(Sound) override {}
0022 };
0023 
0024 #endif // MOCKSOUND_H