summaryrefslogtreecommitdiff
path: root/include/m_skin.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-09-10 07:11:37 -0700
committerGeorge Hazan <ghazan@miranda.im>2022-09-10 07:11:37 -0700
commita929d4c862a60c9abc1b6e9fe507831326f232dc (patch)
treeebdfd47a4781e11e1501c6ff8a0e62000feda4a0 /include/m_skin.h
parentf0585b3e81a1a0a9cfde43313cadf0ee72daad27 (diff)
fixes #3192 (VoiceService: звук звонка воспроизводится лишь один раз)
Diffstat (limited to 'include/m_skin.h')
-rw-r--r--include/m_skin.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/m_skin.h b/include/m_skin.h
index 7727910f3a..fa3fd5051a 100644
--- a/include/m_skin.h
+++ b/include/m_skin.h
@@ -124,13 +124,16 @@ EXTERN_C MIR_APP_DLL(HANDLE) Skin_GetProtoIcon(const char *szProto, int status);
// plays a registered sound
// returns 0 on success, nonzero otherwise
-EXTERN_C MIR_APP_DLL(int) Skin_PlaySound(const char *name);
+#define SPS_FORCEPLAY 0x0001 // play sound even if Options - Sounds - Enabled is unset
+#define SPS_LOOP 0x0002 // loop sound until Skin_PlaySoundFile(NULL) is called
+
+EXTERN_C MIR_APP_DLL(int) Skin_PlaySound(const char *name, int spsFlags = 0);
/////////////////////////////////////////////////////////////////////////////////////////
// plays the sound file (non-registered)
// returns 0 on success, nonzero otherwise
-EXTERN_C MIR_APP_DLL(int) Skin_PlaySoundFile(const wchar_t *pwszFileName);
+EXTERN_C MIR_APP_DLL(int) Skin_PlaySoundFile(const wchar_t *pwszFileName, int spsFlags = 0);
/////////////////////////////////////////////////////////////////////////////////////////
// wParam: 0 when playing sound (1 when sound is being previewed)