#ifndef MSG_WEARABLE_PROFILE
+#ifdef _USE_MM_FW_
#include <mm_error.h>
#include <mm_player.h>
#include <mm_session_private.h>
#include <mm_sound.h>
+#endif
#include <feedback.h>
/*==================================================================================================
VARIABLES
==================================================================================================*/
+#ifdef _USE_MM_FW_
MMHandleType hPlayerHandle = 0;
+#endif
pthread_mutex_t muMmPlay = PTHREAD_MUTEX_INITIALIZER;
static int MsgSoundPlayCallback(int message, void *param, void *user_param)
{
+#ifdef _USE_MM_FW_
switch (message)
{
case MM_MESSAGE_BEGIN_OF_STREAM:
MSG_DEBUG("message [%d]", message);
break;
}
-
+#endif
return 1;
}
MsgSoundPlayer::MsgSoundPlayer()
{
-
+#ifdef _USE_MM_FW_
#ifndef MSG_WEARABLE_PROFILE
bPlaying = false;
bVibrating = false;
MSG_DEBUG("Fail to MsgSensorConnect.");
}
#endif // MSG_WEARABLE_PROFILE
-
+#endif
}
bool MsgIsSoundPlayOnCall(void)
{
bool bPlayOnCall = false;
-
+#ifdef _USE_MM_FW_
#ifndef MSG_WEARABLE_PROFILE
int err = MM_ERROR_NONE;
}
#endif // MSG_WEARABLE_PROFILE
-
+#endif
return bPlayOnCall;
}
void MsgSoundPlayer::MsgSoundPlayStart(const MSG_ADDRESS_INFO_S *pAddrInfo, MSG_SOUND_TYPE_T soundType)
{
MSG_BEGIN();
-
+#ifdef _USE_MM_FW_
#ifndef MSG_WEARABLE_PROFILE
MSG_DEBUG("soundType [%d]", soundType);
// MsgSoundSetRepeatAlarm();
#endif // MSG_WEARABLE_PROFILE
-
+#endif
MSG_END();
}
void MsgSoundPlayer::MsgSoundPlayStop()
{
MSG_BEGIN();
-
+#ifdef _USE_MM_FW_
#ifndef MSG_WEARABLE_PROFILE
pthread_mutex_lock(&muMmPlay);
pthread_mutex_unlock(&muMmPlay);
#endif // MSG_WEARABLE_PROFILE
-
+#endif
MSG_END();
}
void MsgSoundPlayer::MsgSoundPlayMelody(char *pMsgToneFilePath)
{
#ifndef MSG_WEARABLE_PROFILE
-
+#ifdef _USE_MM_FW_
int err = MM_ERROR_NONE;
if (!pMsgToneFilePath) {
pthread_mutex_unlock(&muMmPlay);
#endif // MSG_WEARABLE_PROFILE
+#endif
}
void MsgSoundPlayer::MsgSoundPlayDtmf()
{
MSG_BEGIN();
-
+#ifdef _USE_MM_FW_
#ifndef MSG_WEARABLE_PROFILE
int ret = 0;
}
#endif // MSG_WEARABLE_PROFILE
-
+#endif
MSG_END();
}