am_utils.h

来自「Motorola synergy audio component」· C头文件 代码 · 共 75 行

H
75
字号
#ifndef AM_MAX_INCLUDE#define AM_MAX_INCLUDE/*==============================================================================(c) Copyright Motorola 1990 - 2004, All rights reserved.Motorola Confidential ProprietaryContains confidential proprietary information of Motorola, Inc.Reverse engineering is prohibited.The copyright notice does not imply publication.Revision History:           Modification  TrackingAuthor     Date          Number      Description of Changes---------  ------------  ----------  -------------------------------------------2005-05-05 w17860      CR - LIBgg00249           INTG: Panic when receive MT call very quickly before ringtone rang.2005-01-26 w17860      CR - LIBff42504           Panic with Neptune LTE2 ROM3. Audio shaping not disabled           - Make sure that CODER_ON is allowed to be sent only when              audio queue is empty and the messges have been sent to DSP2004-04-05 w16355      LIBdd89151             Interface function for SBCM to calculate current consuption.             - Added a function to let the SBCM task know what accessory               we're using along with it's volume.==============================================================================*/#ifdef __cplusplus                      /* allow #include in a C++ file */extern "C" {#endif/*==============================================================================                                INCLUDE FILES==============================================================================*/#include  <ENGINE_AUDIO/aud_alert_info.h>                         /*==============================================================================                                    MACROS==============================================================================*//*******************************************************************************DESCRIPTION:    This macro returns the maximum of two input values.   The second definition is needed because seem includes this file by   referencing util_min.h that is not provided in the P2K vobs.*******************************************************************************/#define am_utils_max(a,b) ((a) > (b) ? (a) : (b))#define    util_max(a,b) ((a) > (b) ? (a) : (b))#define am_utils_min(a,b) ((a) < (b) ? (a) : (b))#if (MAKE_FIX_P2K_ERRORS == TRUE)       #ifndef util_min   #define    util_min(a,b) ((a) < (b) ? (a) : (b))  #endif#else   #define    util_min(a,b) ((a) < (b) ? (a) : (b))#endif/*==============================================================================                             FUNCTION PROTOTYPES==============================================================================*/voidaud_set_device_and_volume( AUD_DEVICE_AND_VOLUME_T * device_and_volume );#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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