stoneage8.5/石器时代8.5客户端最新源代码/石器源码/systeminc/t_music.h
2020-06-23 15:53:23 +08:00

61 lines
1.2 KiB
C

/************************/
/* t_music.h */
/************************/
#ifndef _T_MUSIC_
#define _T_MUSIC_
#define T_MUSIC_MONO 0
#define T_MUSIC_STEREO 1
#define TONE_MAX 500//400//256
typedef struct{
int voice_place; //???????????????
int voice_cnt; //?????
int voice_loop; //??????
int voice_volume; //??????
int voice_note; //???吻?
int play_time; //???
int voice_rate;
int voice_address;
} TONE_EQU;
typedef struct
{
char *fname;
int volume;
char loop_flg;
int loop_point;
} T_MUSIC_BGM;
extern T_MUSIC_BGM bgm_tbl[];
extern TONE_EQU tone_tbl[];
int t_music_init(void);
void t_music_end(void);
extern int cdda_no;
extern int stereo_flg;
extern int t_music_se_volume;
extern int t_music_bgm_volume;
extern int t_music_bgm_no;
extern int t_music_se_no;
extern char t_music_bgm_pitch[16];
extern int draw_map_bgm_flg;
extern int map_bgm_no;
//噙秞梓祩
extern BOOL MuteFlag;
bool cdda_play(int);
bool cdda_stop(void);
int play_se(int tone, int x, int y);
int play_bgm(int bgm_no);
void bgm_volume_change(void);
void set_gbm_pitch(void);
void stop_bgm(void);
void fade_out_bgm(void);
int play_environment(int tone, int x, int y);
int play_map_bgm(int tone);
#endif