📄 headset_tones.h
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.4.2-release
FILE NAME
headset_tones.h
DESCRIPTION
*/
#ifndef _HEADSET_TONES_H_
#define _HEADSET_TONES_H_
/****************************************************************************
NAME
isTonePlaying
DESCRIPTION
Determines if a tone is currently playing
RETURNS
True/False
*/
bool isTonePlaying(pcmAudioState state);
/****************************************************************************
NAME
isRingTone
DESCRIPTION
Determines if the ringtone state is currently active
RETURNS
True/False
*/
bool isRingTone(pcmAudioState state);
/****************************************************************************
NAME
isRingOrTonePlaying
DESCRIPTION
Determines if we are playing rings or a tone currently
RETURNS
True/False
*/
bool isRingOrTonePlaying(pcmAudioState state);
/****************************************************************************
NAME
isRinging
DESCRIPTION
Determines if a ringtone is now playing
RETURNS
True/False
*/
bool isRinging(pcmAudioState state);
/****************************************************************************
NAME
tonesInit
DESCRIPTION
Initialise the tones functions
RETURNS
void
*/
void tonesInit(headsetTaskData *app) ;
/****************************************************************************
NAME
headsetPlayTone
DESCRIPTION
Play a ringtone in the headset
*/
void headsetPlayTone(headsetTaskData *app, toneType type_of_tone);
#endif /* _HEADSET_TONES_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -