⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aud_voice_req.c

📁 Motorola synergy audio component
💻 C
字号:
/* (c) Copyright Motorola 1998, All rights reserved.           Motorola Confidential Proprietary   Contains confidential proprietary information of Motorola, Inc.   Reverse engineering is prohibited.   The copyright notice does not imply publication.     DESCRIPTION:        Utility function to send Voice request to the Audio Manager   *************** REVISION HISTORY *********************************************     Date       Author      Reference   ========   ========    ==========================   03-03-25   e11237      CR - LIBbb77547              support video telephony   00-08-09   mtaraba     CR - CSGce55882              Eliminate file gsm.h from audio manager   99-09-01   mgilot      CR - CSGce34326              GRiEF: Stubout all Audio SEEM functions calls              - First version  *//************** INCLUDES ******************************************************/#include <audio/am_server_task.h>#include <ENGINE_AUDIO/aud_prim_ids.h>#include <audio/aud_voice_req.h>/************** LOCAL CONSTANTS ***********************************************//************** LOCAL STRUCTURES, ENUMS, AND TYPEDEFS *************************//************** LOCAL FUNCTION PROTOTYPES *************************************//************** LOCAL MACROS **************************************************//************** LOCAL VARIABLES ***********************************************//************** GLOBAL CONSTANTS **********************************************//************** FUNCTION DEFINITIONS ******************************************//* DESCRIPTION:       This function is used to send Voice Request to the Audio Manager    INPUTS:       None   OUTPUTS:       None   IMPORTANT NOTES:       None     */extern SU_EVMASK am_server_msg_event_mask;extern SU_EVNUM am_server_msg_event_number;extern SU_TASK_HANDLE am_server_task_handle;void aud_voice_req(TD_AUD_VOICE_REQ_TYPE voice){    char *msgptr;    /* Get memory to build the primitive */    msgptr = suCreateMessage((UINT32)sizeof(AUD_VOICE_REQ),                              (UINT32)AUD_VOICE_REQ_ID, SU_INVALID_HANDLE, NULL);    /* Fill in tone info */	((AUD_VOICE_REQ*)msgptr)->req_type = voice;    /* Send Message to the Audio Manager */    suSendMessage(msgptr, am_server_task_port, NULL);    suSetEventMask(am_server_task_handle, am_server_msg_event_mask, NULL);}/* DESCRIPTION:       This function is used to send video telephony - Voice Request to the Audio Manager    INPUTS:       None   OUTPUTS:       None   IMPORTANT NOTES:       None     */void aud_vt_voice_req(TD_AUD_VOICE_REQ_TYPE voice){    char *msgptr;    /* Get memory to build the primitive */    msgptr = suCreateMessage((UINT32)sizeof(AUD_VT_VOICE_REQ),                              (UINT32)AUD_VT_VOICE_REQ_ID, SU_INVALID_HANDLE, NULL);    /* Fill in tone info */	((AUD_VOICE_REQ*)msgptr)->req_type = voice;    /* Send Message to the Audio Manager */    suSendMessage(msgptr, am_server_task_port, NULL);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -