📄 aud_data_req.c
字号:
#ifdef __cplusplusextern "C" {#endif/*================================================================================================== Module Name: aud_data_req.c General Description: Utility function to send data request primitives to the Audio Manager. ==================================================================================================== Motorola Confidential Proprietary Advanced Technology and Software Operations (c) Copyright Motorola 1999, All Rights Reserved Revision History: Modification TrackingAuthor Date Number Description of Changes------------------------- ------------ ---------- -------------------------------------------Kevin Tang 04/03/2000 CSGce53448 Added function aud_data_reqPortability: This module is portable to other compilers.==================================================================================================== INCLUDE FILES==================================================================================================*/#include <ENGINE_AUDIO/aud_prim_ids.h>#include <audio/aud_data_req.h> #include <ENGINE_AUDIO/td_aud_data_req_type.h>#include <audio/AM_SendMessage.h>/*================================================================================================== LOCAL FUNCTION PROTOTYPES==================================================================================================*/ /*================================================================================================== LOCAL CONSTANTS==================================================================================================*//*================================================================================================== LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)==================================================================================================*//*================================================================================================== LOCAL MACROS==================================================================================================*//*================================================================================================== LOCAL VARIABLES==================================================================================================*/ /*================================================================================================== GLOBAL VARIABLES==================================================================================================*//*================================================================================================== LOCAL FUNCTIONS==================================================================================================*//*================================================================================================== GLOBAL FUNCTIONS==================================================================================================*//*==================================================================================================FUNCTION: aud_data_req DESCRIPTION: This functions makes requests of the Audio Manager to start / stop data transfer.ARGUMENTS PASSED: data_req - The request type of data transfer. RETURN VALUE: NonePRE-CONDITIONS: None POST-CONDITIONS: NoneIMPORTANT NOTES: None==================================================================================================*/voidaud_data_req(TD_AUD_DATA_REQ_TYPE_T req_type){ char *msgptr; /* Get memory to build the primitive */ msgptr = suCreateMessage((UINT32)sizeof(AUD_DATA_REQ), (UINT32)AUD_DATA_REQ_ID, SU_INVALID_HANDLE, NULL); /* Fill in tone info */ ((AUD_DATA_REQ*)msgptr)->req_type = req_type; /* Send Message to the Audio Manager */ AM_SendMessage(msgptr); ;}/*================================================================================================*/#ifdef __cplusplus}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -