aud_alert_info.h

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

H
144
字号
#ifndef AUD_ALERT_INFO_INCLUDE#define AUD_ALERT_INFO_INCLUDE#ifdef __cplusplusextern "C" {#endif /*==================================================================================================                                                                                    Header Name: aud_alert_info.h     General Description: DATA STRUCTURE DEFINITIONS To Request Audio Manager check if alert,                          vibrate, or dtmf tones are being played.   ====================================================================================================                              Motorola Confidential Proprietary                         Advanced Technology and Software Operations                   (c) Copyright Motorola 2000 - 2004, All Rights Reserved     Revision History:                            Modification     TrackingAuthor                          Date          Number     Description of Changes-------------------------   ------------    ----------   -------------------------------------------w16355                      04/05/2004      LIBdd89151   Interface function for MP3 alert and playback.                                                         - Added a function to let the SBCM task know                                                           what accessory we're using with it's volume.Ravi Subramanyan            08/05/2003      LIBdd27184   Need to remove the AM_L1_TCH_xxx macros                                                          completely from MME code                                                          - Resource manager would take care of this.   Mohan Manoj Kumar           07/30/2003      LIBdd21617   Conversation is not possible while                                                          storing a user defined soundKevin Tang                  03/12/2003      LIBbb22639   Provided global variables to sync up the                                                         midi sound complete and vocode invocationRandy Scott                 09/10/2002      LIBbb53982   Adding new macro to check when MIDI startsPazit Gold                  05/01/2002      LIBbb28837   During a call the voice isn't heard.                                                         Catchup from CRs: LIBbb25819 and LIBbb28225.                                                         Steve Hagino                10/05/2000      CSGce74921   SBCM improperly implements batt offsets in                                                          RX                                                         - Initial file creation====================================================================================================                                         INCLUDE FILES==================================================================================================*/#include <SUAPI/suapi.h>                         /*==================================================================================================                                           CONSTANTS==================================================================================================*//******************************************************************************* *  The constants below are used to access the bits of the 'flags' *  field of the AUD_DEVICE_AND_VOLUME_T structure defined below. ******************************************************************************/#define AUD_ALERT_FLAGS_STEREO   0x01 /* 0 = mono speakers,    1 = stereo speakers.  */#define AUD_ALERT_FLAGS_PLAYING  0x02 /* 0 = No audio playing, 1 = audio is playing. *//*==================================================================================================                                            MACROS==================================================================================================*//*==================================================================================================                                             ENUMS==================================================================================================*//*==================================================================================================                                 STRUCTURES AND OTHER TYPEDEFS==================================================================================================*//***************************************************************************** *  The purpose of the struct below is to keep track of audio activity *  so that the SBCM task can get a rough estimate of how much current *  drain is due to audio. It needs this data to compensate when calculating  *  charge left in the battery in order to put up the levels on the LCD.*****************************************************************************/typedef struct{    UINT8 device ;         /* HANDSET, BOOM_HEADSET, CE_BUS_MP3, etc.      */    UINT8 volume ;         /* Values between 0 (min vol) and 7 (max vol)   */    UINT8 flags;           /* Used to indicate several boolean states.     */} AUD_DEVICE_AND_VOLUME_T ;/*==================================================================================================                                 GLOBAL VARIABLE DECLARATIONS==================================================================================================*//*==================================================================================================                                     FUNCTION PROTOTYPES==================================================================================================*/BOOL aud_is_alert_tone_on(void);BOOL aud_is_vibrator_on(void);BOOL aud_is_key_tone_on(void);/*  The interface below allows the SBCM task to query info that will *  allow it to estimate current consumption due to audio events. */AUD_DEVICE_AND_VOLUME_T *aud_get_device_and_volume( void );/*================================================================================================*/#ifdef __cplusplus}#endif#endif  /* aud_alert_info.h */

⌨️ 快捷键说明

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