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

📄 sound.h

📁 车载电子影音系统dvd播放系统原程序代码
💻 H
字号:
#ifndef __SOUND_H__
#define __SOUND_H__

#ifdef __cplusplus
   extern "C"{
#endif

#define NO_SOUND_EFFECT   // define this to remove the sound effect

// Internal used by SOUND module for SOUND_Init function
#define SOUND_MP3               1
#define SOUND_MPEG              2
#define SOUND_AC3               3

// Sound Command and Sound State
#define SOUND_READY             0       // for state only
#define SOUND_PLAY              1       // for both command and state
#define SOUND_STOP              2       // for both command and state
#define SOUND_PAUSE             3       // for both command and state
#define SOUND_RESUME            4       // for command only
#define SOUND_PLAY_SYNC         5       // for command only
#define SOUND_INIT_MP2          6       // for state only
#define SOUND_INIT_MP3          7       // for state only
#define SOUND_UNINITIALIZE      8       // for state only

#define SOUND_INIT_VIDEO_FORBID 0       // SOUND_Init should not affect the video
#define SOUND_INIT_VIDEO_ALLOW  1       // don't care if SOUND_Init affects the video

///////////////////////////////////////////

// global variables

extern BYTE __bSoundRepeatRemains;      // repeat times remained for the current sound.
///////////////////////////////////////////


void SOUND_Init (BYTE bInit);
void SOUND_Configure (BYTE bSoundId, BYTE bRepeatTime);
void SOUND_DoCommand (BYTE bCmd);
BYTE SOUND_Monitor (void);
void SOUND_Exit (void);

#ifdef __cplusplus
   }
#endif

#endif  //__SOUND_H__

⌨️ 快捷键说明

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