?? headset_volume.h
字號(hào):
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007
FILE NAME
headset_volume.h
DESCRIPTION
*/
#ifndef HEADSET_VOLUME_H
#define HEADSET_VOLUME_H
#include "headset_private.h"
#define VOL_DEFAULT_VOLUME_LEVEL (0x08)
#define VOL_MAX_VOLUME_LEVEL (0x0f)
/****************************************************************************
NAME
VolumeInit
DESCRIPTION
Initialises the volume.
*/
void VolumeInit ( hsTaskData * pApp );
/****************************************************************************
NAME
VolumeInitHfp
DESCRIPTION
Initialises the HFP volume.
*/
void VolumeInitHfp ( hsTaskData * pApp );
/****************************************************************************
NAME
VolumeToggleMute
DESCRIPTION
Toggles the mute state.
*/
void VolumeToggleMute ( hsTaskData * pApp );
/****************************************************************************
NAME
VolumeMuteOn
DESCRIPTION
Enables Mute.
*/
void VolumeMuteOn ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
VolumeMuteOff
DESCRIPTION
Disables Mute.
*/
void VolumeMuteOff ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
VolumeUp
DESCRIPTION
Increments volume.
*/
void VolumeUp ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
VolumeDown
DESCRIPTION
Decrements volume.
*/
void VolumeDown ( hsTaskData * pApp ) ;
NAME
VolumeStoreLevels
DESCRIPTION
Store the volume levels in PS.
*/
void VolumeStoreLevels ( hsTaskData * pApp ) ;
/****************************************************************************
NAME
VolumeSendSettingsToAG
DESCRIPTION
Send local speaker and mic volume levels to the connected AG .
*/
void VolumeSendSettingsToAG(hsTaskData * pApp, bool send_speaker, bool send_mic);
/****************************************************************************
NAME
VolumeGetHeadsetVolume
DESCRIPTION
Retrieve the current headset volume.
RETURNS
Returns FALSE if no volume was retrieved.
*/
bool VolumeGetHeadsetVolume(hsTaskData * pApp, uint16 * actVol, bool * avAudio);
/****************************************************************************
NAME
VolumeSetHeadsetVolume
DESCRIPTION
Sets the current headset volume. This volume can also be sent to the connected AG.
RETURNS
Returns FALSE if no volume was retrieved.
*/
void VolumeSetHeadsetVolume(hsTaskData * pApp, uint16 actVol, bool avAudio, bool sendVolToAg);
/****************************************************************************
NAME
VolumeRetrieveGain
DESCRIPTION
Retrieve the gain to be set based on the index table used by the application.
RETURNS
Returns the gain to be set.
*/
uint16 VolumeRetrieveGain( uint16 index , bool avAudio );
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -