SKYENGINE API  参考手册返回目录  

 
int32 mr_platEx

(int32 code = 1208,
uint8* input,
int32 input_len,
uint8** output,
int32* output_len,
MR_PLAT_EX_CB* cb
)



Description
设置手机铃声。
Parameters

Name Description
input T_DSM_RING_SET数据结构指针
input_len T_DSM_RING_SET 数据结构大小
output
output_len
cb

Return Value

MR_SUCCESS                  设置成功
MR_FAILED                     设置失败
MR_IGNOR                      不支持该功能

Remarks

T_DSM_RING_SET数据结构:
typedef struct
{
    int32 scene;
    int32 type;
    char *path;                   //gb编码 (相对VM当前目录的路径和歌曲名称)
}T_DSM_RING_SET;

typedef enum
{
    MR_SCENE_NORMAL,
    MR_SCENE_MEETING,
    MR_SCENE_INDOOR,
    MR_SCENE_OUTDOOR,
    MR_SCENE_MUTE
}T_DSM_SCENE;

typedef enum
{
    MR_CALL_RING,
    MR_SMS_RING,
    MR_ALARM_RING
}DSM_RING_TYPE;

Example

/*mrp code*/

#define RING_ALARM "OATfile\\ring_test\\alarm_ring.mp3"
T_DSM_RING_SET set;

set.scene = MR_SCENE_NORMAL;
set.type = MR_ALARM_RING;
set.path = RING_ALARM;
mrc_platEx(1208, (uint8*)&set, sizeof ( T_DSM_RING_SET ), NULL, NULL,NULL);

See Also

 


Copyright ?2005-20010 SKY-MOBI

返回目录