diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-04 18:25:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-04 18:25:38 +0000 |
commit | 8b4ca50acec418a7b16241b022f4e4b98ee971d3 (patch) | |
tree | 9174b2df2f11f3623650a2fb61f63ad587cc8d8a /include/m_skin.h | |
parent | 55f03731ed14f94bfcda60ef0266eaab228e4ce3 (diff) |
MS_SKIN_PLAYSOUNDFILE: extension of MS_SKIN_PLAYSOUND that plays almost any file
git-svn-id: http://svn.miranda-ng.org/main/trunk@4304 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_skin.h')
-rw-r--r-- | include/m_skin.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/m_skin.h b/include/m_skin.h index 0da463463d..a57d79f238 100644 --- a/include/m_skin.h +++ b/include/m_skin.h @@ -188,7 +188,7 @@ __forceinline INT_PTR Skin_AddSound(SKINSOUNDDESCEX *ssd) return CallService("Skin/Sounds/AddNew", hLangpack, (LPARAM)ssd);
}
-//play a named sound event
+//plays a named sound event
//wParam = 0
//lParam = (LPARAM)(const char*)pszName
//pszName should have been added with Skin/Sounds/AddNew, but if not the
@@ -200,6 +200,16 @@ __forceinline INT_PTR SkinPlaySound(const char *name) return CallService(MS_SKIN_PLAYSOUND, 0, (LPARAM)name);
}
+//plays any sound file
+//wParam = 0
+//lParam = (LPARAM)(const TCHAR*)ptszFileName
+#define MS_SKIN_PLAYSOUNDFILE "Skin/Sounds/PlayFile"
+
+__forceinline INT_PTR SkinPlaySoundFile(const TCHAR *ptszFileName)
+{
+ return CallService(MS_SKIN_PLAYSOUNDFILE, 0, (LPARAM)ptszFileName);
+}
+
//sent when the icons DLL has been changed in the options dialog, and everyone
//should re-make their image lists
//wParam = lParam = 0
|