diff options
Diffstat (limited to 'engines/testbed/sound.h')
-rw-r--r-- | engines/testbed/sound.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/testbed/sound.h b/engines/testbed/sound.h index 4078bbcac3..4d432a36fc 100644 --- a/engines/testbed/sound.h +++ b/engines/testbed/sound.h @@ -26,15 +26,30 @@ #define TESTBED_SOUND_H #include "testbed/testsuite.h" +#include "gui/dialog.h" namespace Testbed { +class SoundSubsystemDialog : public GUI::Dialog { +public: + SoundSubsystemDialog(); + ~SoundSubsystemDialog() {} + void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data); +private: + void addButton(uint w, uint h, const Common::String name, uint32 cmd, uint xOffset = 0, uint yPadding = 8); + void addText(uint w, uint h, const Common::String text, Graphics::TextAlign textAlign, uint xOffset, uint yPadding); + Common::Array<GUI::ButtonWidget *> _buttonArray; + uint _xOffset; + uint _yOffset; +}; + namespace SoundSubsystem { // Helper functions for SoundSubsystem tests // will contain function declarations for SoundSubsystem tests bool playPCSpkSound(); +bool mixSounds(); } class SoundSubsystemTestSuite : public Testsuite { |