X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fsound.h;h=81c7dca486257c37c983a8194bbc68d8710f22de;hp=ca2e044a8b4e49617bc850d4b79bf9918cf4be5d;hb=4a99fe51561ca331df54512eb25c502d0fcd2b55;hpb=dbfaa4949fe7c5be64cf3e98b1875b711656ff67 diff --git a/src/sound.h b/src/sound.h index ca2e044..81c7dca 100644 --- a/src/sound.h +++ b/src/sound.h @@ -27,12 +27,16 @@ #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 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);