nt9856x/code/application/source/cardv/SrcCode/UIWnd/SPORTCAM/Resource/SoundData.h
2023-03-28 15:07:53 +08:00

71 lines
1.8 KiB
C
Executable File

/**
Copyright Novatek Microelectronics Corp. 2005. All rights reserved.
@file SoundData.c
@ingroup mIPRJAPKey
@brief Keypad tone, Startup... sound data
This file contain the PCM (ADPCM) data of keypad tone, Startup...
@note Nothing.
@date 2005/01/23
*/
/** \addtogroup mIPRJAPKey */
//@{
#ifndef _SOUNDDATA_H
#define _SOUNDDATA_H
#include "PrjCfg.h"
#define AUDIO_SR_8000 8000 ///< 8 KHz
#define AUDIO_SR_11025 11025 ///< 11.025 KHz
#define AUDIO_SR_12000 12000 ///< 12 KHz
#define AUDIO_SR_16000 16000 ///< 16 KHz
#define AUDIO_SR_22050 22050 ///< 22.05 KHz
#define AUDIO_SR_24000 24000 ///< 24 KHz
#define AUDIO_SR_32000 32000 ///< 32 KHz
#define AUDIO_SR_44100 44100 ///< 44.1 KHz
#define AUDIO_SR_48000 48000 ///< 48 KHz
#if ((DRAM_SIZE_64MB_DISP_OFF==ENABLE)|| (_BOARD_DRAM_SIZE_ == 0x04000000) || (SENSOR_CAPS_COUNT >= 2) || (defined(_NVT_ETHREARCAM_RX_) && (ETH_REARCAM_CAPS_COUNT >= 1)))
#define SOUND_AUDIO_SR AUDIO_SR_16000
#else
#define SOUND_AUDIO_SR AUDIO_SR_32000
#endif
typedef enum {
DEMOSOUND_SOUND_NONE = 0,
DEMOSOUND_SOUND_KEY_TONE,
#if(PHOTO_MODE==ENABLE)
DEMOSOUND_SOUND_SHUTTER_TONE,
#endif
DEMOSOUND_SOUND_POWERON_TONE,
#if (_ADAS_FUNC_ == ENABLE)
DEMOSOUND_SOUND_LDWS_TONE,
DEMOSOUND_SOUND_FCS_TONE,
DEMOSOUND_SOUND_SNG_TONE, //STOP and Go
#endif // #if (_ADAS_FUNC_ == ENABLE)
//#NT#2016/07/20#Brain Yen -begin
//#NT#DDD alarm sound
#if (_DDD_FUNC_ == ENABLE)
DEMOSOUND_SOUND_DDDWARNING1_TONE,
DEMOSOUND_SOUND_DDDWARNING2_TONE,
DEMOSOUND_SOUND_DDDWARNING3_TONE,
#endif //#if (_DDD_FUNC_ == ENABLE)
//#NT#2016/07/20#Brain Yen -end
DEMOSOUND_SOUND_MAX_CNT
}
DEMOSOUND_DATA_LIST;
extern void UISound_RegTable(void);
extern void UISound_EnableKey(BOOL bEn);
extern void UISound_Play(UINT32 index);
#endif
//@}