headset_tones.h

来自「bluelab 3.52 里面的立体声程序源代码」· C头文件 代码 · 共 87 行

H
87
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.5.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 + =
减小字号Ctrl + -
显示快捷键?