aud_data_req.c

来自「Motorola synergy audio component」· C语言 代码 · 共 111 行

C
111
字号
#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 + =
减小字号Ctrl + -
显示快捷键?