📄 headset_volume.h
字号:
/****************************************************************************
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -