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

📄 ircmd.c

📁 mp3 player program please read carefully.
💻 C
📖 第 1 页 / 共 3 页
字号:
/*************************************************************
** FILE
** ircmd.c
**
** DESCRIPTION
** splitted from ir.c, now all the IR (or global) functions
** are implemented here.
**
**   Create:   JJ
**   Maintain:   Kenny 2000/09/29
**               Terry 2003.02.24   move file header to ircmd_h.h
**                                  move util code to ircmd_util.c
**                                  move amp. code to ircmd_amp.c
**               Terry 2005.04.07   correct PrintOsdMsg 4th parameter error bug.
****************************************************************/
#include "ircmd_h.h"
#include "gpio.h"
#include "asf_if.h"
#include "lbaif.h"
#include "sinf.h"
#include "timer.h"
#include "Subtitle.h"
#include "user_if.h"   // 2005/06/28 yltseng

#ifdef SUPPORT_DVD_NATIVE_GAME
#include "..\fbuf_game\Fbuf_game_Macro_Def.h"
#endif

#ifdef SUPPORT_CD_RIPPING //qinhua,add 060602
extern  int new_app_state;
#include "fs_new_app.h"
#endif

#include "memmap_I2C.h"
#include "..\setup\setup_VA.h"

#ifdef DISPLAY_CD_TEXT          //lizhx add 2004/09/06
#include "CDTextUtil.h"
#endif
#ifdef USER_MPEG_LOGO//zxb 06/11/22
#include "userlogo.h"
#endif

#ifdef SUPPORT_iPOD_DOCKING  //hongfeng 2007/1/26 16:34
#include "Ipod.h"
#endif

//xlluo add 070528
#ifdef SUPPORT_CTRLINFO_VOCALTIP
#include ".\\Customers\\Sunplus\\Mp3VolTip.c" 
#endif

//QiaoHuilin:2005-10-24:
#ifdef MUSTEK_LCD_DRIVE_BITEK
extern void LCD_Show_Volume (BYTE volume);
extern void	LCD_ShowDemuteIcon(void);
extern void LCD_ShowMuteIcon(void);
#endif
////////////////////////////////////////////////////

#ifdef SUPPORT_UNICODE_FONT//2005/9/2 joshua
#include "font_unicode.h"
#endif

#ifdef PMP_UI           ///yangli 2005/7/5
#include "fsNAV_PMP.h"
extern FSNAVUI fsPmp;
#endif

#ifdef SUPPORT_QUICKTIME
#include "QT_if.h"
#endif
#ifdef SUPPORT_OGG
#include "ogg_if.h"
#endif        

#ifdef OP_DVD5121_PANEL  //qinhua ,add 2005-9-5 22:34
BYTE    pressed_flag;
#endif 

#define D   printf("INFO: __%d__(%s:%s)\n",__LINE__,__FILE__,__FUNCTION__);

#ifdef FILE_MODE_WRITE//nono add 20050224
#include "memcfg.h"
#endif//#ifdef FILE_MODE_WRITE

#ifdef SUPPORT_RECEIVER /*2005-6-7 10:42 huziqin*/
#include "e2prom_map.h"
#endif

//#ifdef OP_UI
//#include "menu_func.h"
//#include "infobanner_func.h"
//#include "infobanner_def.h"
//#endif//


#ifdef STOP_LOADER
extern int atapi_standby_mode(void);
#endif

#ifdef JPG_OLD_PARSER_FLOW
    #ifdef JPG_EFFECT
    #include "jpegeffect.h"
    #endif
#else
    #include "pic_effect.h"
#endif

#ifdef USER_LOGO
#include "userlogo.h"
#endif

#ifdef SDRAM_16Mb_Mode
#include "memmap.h"
#include "memmap0.h"
#endif

#ifdef SPHE8202_ALL_TYPE_CARD_WRITE
extern BYTE card_browse_sign;//dingzhy 4-11-18 9:40
#endif

#ifdef SHOW_12_BOOKMARK//libing 2005-6-29 21:59
extern void cancel_bookmark();
#endif

#ifdef OP_PLAYMODE//libing 2005-9-29 10:53
extern void exit_op_menu(void);
extern void exit_tray_menu(void);
extern void play_mode_cancel(void);
#endif

//dtb in 20030915
#ifdef SUPPORT_MIDI
#include "fsmidi.h"
#ifdef SUPPORT_MIDI_MENU_SEL
#include "fsMidiUI.h"
#endif
#endif

#if(defined(SUPPORT_ID3) || defined(SUPPORT_OSDID3))
#include "fs_show.h"
#endif

#ifdef SUPPORT_MP4
//#include "drm.h"
    #ifdef SUPPORT_DIVX_HOME_THEATER
    #include "DRM_UI.h"
    #include "drm.h"
    #endif

#include "avi_if.h"

#endif
#include "osd_AppAPI.h"

#ifdef SUPPORT_TVG
#include "TVGApp.h"
#endif

#ifdef SUPPORT_MULTI_PARTITION//liweihua 2004-11-2 20:45
#include "playmode.h"
#endif

#ifdef SUPPORT_8202_DVB     //Maoyong 2004-10-19 14:32
#include "..\dvb_h\sp_dtv.h"
#include "..\dvb_h\dvb_simgr.h"
#ifdef SUPPORT_DVB_PREVIEW_9FRAMES
extern UINT8 dvb_preview_state;
extern UINT8 DvbPreviewNavigationFirstFlag;
extern UINT8 DvbPreviewSlideShowFinish;
extern void dvb_preview_navigation(void);
extern void DvbDvdSwitch(void);
#endif
#endif
#ifdef POWER_OFF_ONLY_VIDEO_DAC_OFF     //2005-01-13 wjzhang ,fix the power un sync bug for twinhan
#include "../driver/message.h"
#endif

#ifdef SPHE8202_CARD_STORAGE    //dingzhy 05-3-22 10:48
#include "card_main.h"
#endif

#ifdef SHUFFLE_ACCOMPLISH_BY_ARITHMETIC
#include "shuffle_new.c"
 #endif

#ifdef DISP_TIME_AFTER_STATE
int vfd_disp_ab_flag;
int vfd_disp_rep_flag;
int vfd_disp_mute_flag;
//int vfd_disp_play_flag;
#endif
#ifdef VOL_LED//HIMAGE1251
BYTE nLed_index=0;
#endif

#ifdef  UPGRADE_TRAYOUT //joshua add    04-07-13
extern  int trayout_flag;
#endif

#ifdef ONLY_SOUND_FIELD_KEY//zhaoyanhua add 03-10-29 15:37
#include "dsp3_if.h"
#define MAX_PAGE_ITEM   4
#define MAX_ITEM_SEL    11
BYTE surround_type = 0;
extern  const UINT8 sound_item[MAX_PAGE_ITEM][MAX_ITEM_SEL];//include in sound.c
#endif

#if defined(ONLY_EQ_KEY)||defined(SUPPORT_RECEIVER_EQ)//chenzhao20051017//zhaoyanhua add 03-10-29 15:34
#include "dsp3_if.h"
#define MAX_PAGE_ITEM_S   4
#define MAX_ITEM_SEL_S    11
#ifdef SUPPORT_MULTI_CHANNEL_5_BAND_EQ
#define MAX_BAND    5
#else
#define MAX_BAND        7
#endif
#define MAX_MUSIC       7
BYTE EQ_type = 0;
extern  const UINT8 sound_item[MAX_PAGE_ITEM_S][MAX_ITEM_SEL_S];//include in sound.c
extern  const UINT8 music_osd_set[MAX_MUSIC][MAX_BAND];
extern void SettingEqLevel(BYTE *);
extern void SettingEQType(BYTE type);
void SetEQ(void);
#endif

#ifdef SUPPORT_APOGEE_AMP
extern void    ddx_disableEPAD();
extern void    ddx_masterMute(BYTE);
#endif

#if 0//def  CNTR_5SPK_VOLUME
static int tVolumeL,tVolumeR;   //wangfeng 2004-2-9 16:16
#endif

// mimitsai merge from dp2070/dp3240
#ifdef  USER_VERSION_INFORMATION//eastech   
extern  BYTE    custm_count;
extern  BYTE    enter_display_flag;
#endif  //#ifdef  USER_VERSION_INFORMATION

#ifdef SUPPORT_NEXT_PREV_AUTO_PLAY_MP3 //////////yangli add for in filemode next/prev/autoplay function
       extern int auto_play_flag;
       extern int next_flag;
       extern int prev_flag;
#endif
 
#ifdef FILE_MODE_WRITE
extern void FileModeGUI_select(void);
#endif

#ifdef SCORE_IN_PLAYMODE_MENU//libing
extern int score_flag;
#endif 

extern void FSChangeGraphMode(void); // in fsNAV.c

#ifdef IR_SWITCH_CD_USB_CF_OTHER  //dingzhy 04-10-22
EXTERN  BYTE now_valid_type;
#endif

#ifdef SUPPORT_PROLOGIC_II//zhaoyanhua add 2004-2-11 13:51
extern void setup_OffPrologic_II(void);    //setup_tab.c
extern int setup_IsPrologicOn();    
#endif// ifdef SUPPORT_PROLOGIC_II
   
#ifdef AUDIO_2CH_5_1CH//zhaoyanhua add 03-10-29 15:30
#define AUDIO_2CH  1
#define AUDIO_5_1CH  2
BYTE  ChannelFlag = AUDIO_2CH;
extern void AudioSet2chOutput(void);//setup_tab.c
extern void AudioSet5_1chOutput(void);//setup_tab.c
extern void AudioSetPrologic_IIOutput(void);//setup_tab.c
extern int setup_IsSpkDownmixOff(void);
extern int setup_IsSpkStereo(void);
extern UINT8 setup_GetPrologicII(void);
#endif

#ifdef DIV_GOTO_DISPLAY//zhaoyanhua add 03-10-24 20:12
BYTE SearchPage = 0;
extern void ShowSearchPage(BYTE page,BYTE need_hi);
#endif

#ifdef HANYANG_LR_CHANGE_PAGE
extern void FSGUI_File2DirArea(void);
#endif

#ifdef SETUP_ON_OPEN_VALID
BYTE OpenFlag=0;    //dingzhy for real open sign
#endif
 
#ifdef OFF_PROLIGIC_WHEN_TURN_KEY//zhaoyanhua add 2003-12-11 11:14
extern UINT8 setup_GetPrologicII(void);
#endif

#ifdef TWO_KEY_SWITCH_TWO_SUBTITLE  //added by wangwei,2004-9-29 13:47
extern void sup_select_subtitles(int n);
extern void sup_select_channel_2(int chn);
int twoSubTTFlag = 0;
int IDTWO = 0;
#endif  //TWO_KEY_SWITCH_TWO_SUBTITLE

#ifdef DYNAMIC_SPECTRUM    //fengjl 3-10-29 20:56
extern BYTE band_onoff;  
#endif

#ifdef NEW_PARENTAL_GUI//zhaoyanhua 2003-11-29 9:40
BYTE one_key_pass_play = 0;
#endif

#ifdef ROTATE_NOT_ZOOM//zhaoyanhua 2003-12-9 16:38
extern UINT8  Is_Rotate_State(void);
#endif

#if defined(SUPPORT_BASS_TREBLE)//xyy 2004-3-8
extern void ddx_ircmd_BassAdjust(int updown);
extern void ddx_ircmd_TrebleAdjust(int updown);
#endif

#ifdef JPEG_THUMBNAIL_MENU  //Maoyong 2004-8-13 20:09
extern BYTE ThunmnailChkValidPrevNext(BYTE rx);
#endif

#ifdef USER_MPEG_LOGO       //maoyong 2004.02.20
extern  BYTE    mpeg_logo_onoff;
#endif

#ifdef TEST_VFD_PANNEL_AND_KEY//lijd 2005-5-8 13:54
extern void TestVFDEveryDot(void);
extern BYTE     Test_Stop_flag;
#endif

#ifdef  POLLING_10MS_SAVE_RESUME    //Maoyong 2004.03.01
#define DVD_RSM_WRITE_SIZE  (sizeof(same_disc_vob11_pos) + sizeof(pDSV->rsm_info[DVD_PRESTOP_RSM_ITEM]) + sizeof(resumeMSF) )
BYTE    rsm_I2c_write_cnt = DVD_RSM_WRITE_SIZE;     
#endif


#ifdef ADD_DVI311_SETUP
extern void close_pll(unsigned char num);
#endif

#ifdef SCALER_6500
extern void SCA_DAC_HDMI_PwDown(void);
#endif

#ifdef MULTIDISC_LOADER  //chenzhao20060111
    #include "multidisc_loader.h"
#endif

#ifndef DVDRELEASE
//#define IRCMD_DBG       1
#endif

#ifndef IRCMD_DBG
#undef printf
#undef print_block
#define printf(f, a...) do {} while (0)
#define print_block(x,y) do {} while (0)
#endif

#include "ircmd_util.c"
#include "rsm_util.h"

#ifdef SUPPORT_REP_READ    //Maoyong 2004.06.07
#include "read.h"
#include "func.h"
#endif

#ifdef  DYNAMIC_SPECTRUM //zhaoyanhua add 03-11-1 15:30
void ClearShowSpectrum(void);
#endif

#ifdef NEWSTYLE_WINDOW
#include "osd_arc.h"
#endif

#if defined(SUPPORT_CARD_STORAGE)||defined(SUPPORT_USB)||defined(SPHE8202_CARD_STORAGE)
#include "cardfs.h"
extern CARD_FILE    cardFile;//liweihua 2004-4-5
extern CARD_INFO    cardP;
#if defined(CF_CARD_WRITE) || defined(FAT_Write_UI)//|| defined(WRITE_USB)//liweihua mod 20031219
BYTE Select_Media;
BYTE pressnum_flag;
extern void show_switch(BYTE Select_Media);  //wuxiaofeng
extern void FS_Return2Menu();
//extern void show_switch(void);  //wuxiaofeng
#endif
#endif

#ifdef FAT_FILE_MODE
extern UINT16 fat_play_mode;
extern BYTE mode_menu_id;
#endif

#ifdef SUPPORT_SPI
#include "spi.h"
#endif

#ifdef SUPPORT_RECEIVER  //chenzhao20050620
#include "amp_gui.h"
#endif

#if defined(SUPPORT_DPF_UI)
#include "..\dpf\UI\dpf_key_cmd.h"
#ifdef SUPPORT_PCF8563
#include "..\dpf\DevDrv\PCF8563.h"
#endif
#endif
/**********************************************************************
for 8104/8202D MP3 encoder
20050824 jslin
**********************************************************************/
#ifdef SUPPORT_MP3_ENCODER
//extern void fs_mp3_encoder_main(void);
extern void stop_current_ripping(void);
#endif

⌨️ 快捷键说明

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