sound.h

来自「车载电子影音系统dvd播放系统原程序代码」· C头文件 代码 · 共 48 行

H
48
字号
#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 + =
减小字号Ctrl + -
显示快捷键?