Supertux can now run even if we were unable to open an audio device
[supertux.git] / src / audio / sound_manager.hpp
index e93113b..7d96af3 100644 (file)
@@ -57,9 +57,14 @@ public:
   void enable_music(bool music_enabled);
   void play_music(const std::string& filename, bool fade = false);
   void stop_music(float fadetime = 0);
-  
+
+  bool is_music_enabled() { return music_enabled; } 
   bool is_sound_enabled() { return sound_enabled; }
 
+  bool is_audio_enabled() {
+      return (device == 0 || context == 0 ? false : true);
+  }
+
   void update();
 
 private: