DEADSOFTWARE

sound: move sound/music configuration to sound driver
[flatwaifu.git] / src / sound.h
index ca2e044a8b4e49617bc850d4b79bf9918cf4be5d..81c7dca486257c37c983a8194bbc68d8710f22de 100644 (file)
 #ifndef SOUND_H_INCLUDED
 #define SOUND_H_INCLUDED
 
+#include "menu.h"
+#include "system.h"
+
 typedef struct {
   int tag;
 } snd_t;
 
-// Sound volume 0..128
-extern short snd_vol;
+const cfg_t *S_args (void);
+const cfg_t *S_conf (void);
+const menu_t *S_menu (void);
 
 // Get sound handle for resource <id>
 snd_t *S_get (int id);
@@ -40,6 +44,9 @@ snd_t *S_get (int id);
 // Get sound handle for resource with name
 snd_t *S_load (const char name[8]);
 
+// Stop sound and free handle
+void S_free (snd_t *s);
+
 // Initialize sound subsystem
 void S_init (void);