2020-06-23 15:53:23 +08:00
|
|
|
|
/************************/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
/* 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{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
int voice_place; //???????????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
int voice_cnt; //?????
|
|
|
|
|
int voice_loop; //??????
|
2020-06-23 15:53:23 +08:00
|
|
|
|
int voice_volume; //??????
|
|
|
|
|
int voice_note; //???吻?
|
|
|
|
|
int play_time; //???
|
2020-06-23 15:27:59 +08:00
|
|
|
|
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;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
//噙秞梓祩
|
2020-06-23 15:27:59 +08:00
|
|
|
|
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
|