summaryrefslogtreecommitdiff
path: root/src/sound/sound_driver.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/sound_driver.hpp')
-rw-r--r--src/sound/sound_driver.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sound/sound_driver.hpp b/src/sound/sound_driver.hpp
index 6de66d74e..062e7704d 100644
--- a/src/sound/sound_driver.hpp
+++ b/src/sound/sound_driver.hpp
@@ -19,6 +19,17 @@ public:
virtual void MainLoop() {}
/**
+ * Whether the driver has an output from which the user can hear sound.
+ * Or in other words, whether we should warn the user if no soundset is
+ * loaded and that loading one would fix the sound problems.
+ * @return True for all drivers except null.
+ */
+ virtual bool HasOutput() const
+ {
+ return true;
+ }
+
+ /**
* Get the currently active instance of the sound driver.
*/
static SoundDriver *GetInstance() {