⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tvaudio.h.svn-base

📁 最新火热的CX32 源代码
💻 SVN-BASE
字号:

#ifndef __TVAUDIO_H
#define __TVAUDIO_H
#include "..\..\inc\DV_AUD\_stv82x7.h"


/** Define audio system.
    It' better that user UI interface should 
    follow this seqence, other wise it should create match map 
*/
#define     _AUDIO_SYSTEM_BG_       0x00
#define     _AUDIO_SYSTEM_I_        0x01
#define     _AUDIO_SYSTEM_DK_       0x02
//#define     _AUDIO_SYSTEM_MN_       0x03//YYM_06_07_07 delete for[]
#define     _AUDIO_SYSTEM_L_        0x03
#define     _AUDIO_SYSTEM_LP_       0x04
#define     _AUDIO_SYSTEM_MN_       0xff//YYM_06_07_07 delete for[]

//#include "TVMSP3450G.h"//YYM_06_04_17 delete for[]

#ifdef __cplusplus
extern "C" {
#endif

/* define Audio Driver attribute */
#define _AUDIO_VOLUME_              0x00   //Volume loudspeaker channel
#define _AUDIO_BALANCE_             0x01   //Balance loudspeaker channel
#define _AUDIO_BASS_                0x02   //Bass loudspeaker channel
#define _AUDIO_TREBLE_              0x03   //Treble loudspeaker channel
#define _AUDIO_LOUDSPEACKER_SOURCE_ 0x04   //Source & matrix loudspeaker channel
#define _AUDIO_SCART_SWITCH_        0x05   //Source & matrix loudspeaker channel
#define _AUDIO_PRE_SCART_           0x07   //Prescale SCART input
#define _AUDIO_PRE_FM_AM_           0x08   //Prescale FM/AM input
#define _AUDIO_PRE_NICAM_           0x09   //Prescale NICAM input
#define _AUDIO_PRE_IIS1_            0x0A   //Prescale IIS1 input
#define _AUDIO_PRE_IIS2_            0x0B   //Prescale IIS2 input
#define _AUDIO_EQUAL_BAND1_         0x0C   //Equalizer loudspeaker ch. band 1
#define _AUDIO_EQUAL_BAND2_         0x0D   //Equalizer loudspeaker ch. band 2
#define _AUDIO_EQUAL_BAND3_         0x0E   //Equalizer loudspeaker ch. band 3
#define _AUDIO_EQUAL_BAND4_         0x0F   //Equalizer loudspeaker ch. band 4
#define _AUDIO_EQUAL_BAND5_         0x10   //Equalizer loudspeaker ch. band 5
#define _AUDIO_ACB_                 0x12   //SCART switches
#define _AUDIO_BEEPER_              0x13   //Beeper
#define _AUDIO_SUPPORT_AUTODETECT_  0x14
#define _AUDIO_AUTODETECT_          0x15

#define _AUDIO_TONE_MODE_			0x16

#define _AUDIO_INPUTMATRIX_		    0x30
#define _AUDIO_INPUTATT_			0x31
#define _AUDIO_ALSSTART_			0x32
#define _AUDIO_ALSSW_				0x33
#define _AUDIO_TESTSW_				0x34
#define _AUDIO_WOOFERLEVEL_		    0x35
#define _AUDIO_PORT3_				0x36
#define _AUDIO_PORT4_				0x37
#define _AUDIO_MUTE1_				0x38
#define _AUDIO_MUTE2_				0x39
#define _AUDIO_WOOFERLPFDEFEAT_	    0x3A
#define _AUDIO_WOOFERLPF_			0x3B
#define _AUDIO_BASSBOOST_			0x3c
#define _AUDIO_VOLUME_EARPHONE_		0x41//YYM_06_05_30 add for[]

#define _AUDIO_SIGNAL_SOURCE_       0x70
#define _AUDIO_SYSTEM_              0x88
#define _AUDIO_WARM_INIT_           0x81
#define _AUDIO_SET_TIMER_TICK_      0x84
#define _AUDIO_OUTPUT_MODE_         0x85
#define _AUDIO_TRANS_MODE_          0x86
#define _AUDIO_DEC_DELAY_           0x87
#define _AUDIO_ASD_STATE_           0x89
#define _AUDIO_USER_CHANGE_         0x8A
#define _AUDIO_AM_                  0x8B
#define _AUDIO_SOUND_MODE_          0x8C // For Mono/Stereo/Dual changing.
#define _AUDIO_MTS_SWITCH_          0x8D // For Main/SAP switching.
//--------YYM_06_04_21 added for[]
#define _AUDIO_USER_MODE_          	0x8E//user select
#define _AUDIO_MATCH_MODE_          0x8F//user select should match output mode,use this to get correct user select
//added end

#define _AUDIO_ONIDLE_              0x90
#define _AUDIO_TIMER_TICK_          0x91
#define _AUDIO_ASD_RESULT_			0x92
#define _AUDIO_STATUS_CHANGE_		0x93

#define _AUDIO_FADE_TIME_			30//YYM_06_06_21 add for[3S TO FADEIN]
/**  
    Define a virtual Audio API function in here. 
    User should implement these API to call physical audio dirver.
 */
typedef Bool (*FnAudioInit)(RPByte rpDatas);
typedef Bool (*FnAudioSetAttr)(Byte, Word);
typedef Byte (*FnAudioGetAttr)(Byte);

typedef struct tagAudioDriver
{
    FnAudioInit        fnAudioInit;
    FnAudioGetAttr     fnAudioGetAttr;    
    FnAudioSetAttr     fnAudioSetAttr;
} AudioDriver;
extern Code AudioDriver   f_tvMSP3450GDriver;//YYM_06_04_17 delete for[]
extern Code AudioDriver	  f_tvTA1304FDriver;
extern Code AudioDriver   f_tvSTV82X7Driver;
Void tvSetVolume(BYTE ucVal);
Void tvSet100Hz(BYTE ucVal);
Void tvSet500Hz(BYTE ucVal);
Void tvSet1_5khz(BYTE ucVal);
Void tvSet5khz(BYTE ucVal);
Void tvSet10khz(BYTE ucVal);
Void tvSetBalance(BYTE ucVal);
Void tvSetBassBoost(BYTE ucVal);
Void tvSetWooferLPF(BYTE ucWooferLPF);
Void tvSetSoundMode(BYTE ucVal);
Void tvSetBassBoostONOFF(BYTE OnOff);
Void tvAudioMute(Bool bMute);
Void tvReleaseMute(Void);
Void tvAudioMuteTB1304(Bool bMute);
Void tvSystemMuteProcessing(void);

#ifdef __cplusplus
};
#endif

#endif


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -