From c0bed3eac97178e731bb698c3e2b2d00fc0a3919 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 22 Mar 2013 17:07:29 +0100 Subject: [PATCH] Add prefix path for sound files. --- coreapi/linphonecore.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 8d2d826db..0b475e15f 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -69,11 +69,16 @@ static void linphone_core_free_hooks(LinphoneCore *lc); const char *linphone_core_get_nat_address_resolved(LinphoneCore *lc); static void toggle_video_preview(LinphoneCore *lc, bool_t val); +#ifdef WINAPI_FAMILY_PHONE_APP +#define SOUNDS_PREFIX "Assets/Sounds/" +#else +#define SOUNDS_PREFIX +#endif /* relative path where is stored local ring*/ -#define LOCAL_RING "rings/oldphone.wav" +#define LOCAL_RING SOUNDS_PREFIX "rings/oldphone.wav" /* same for remote ring (ringback)*/ -#define REMOTE_RING "ringback.wav" -#define HOLD_MUSIC "rings/toy-mono.wav" +#define REMOTE_RING SOUNDS_PREFIX "ringback.wav" +#define HOLD_MUSIC SOUNDS_PREFIX "rings/toy-mono.wav" extern SalCallbacks linphone_sal_callbacks;