/* Quick start? */
if (!ask_quick_start())
{
+ music_basic(MUSIC_BASIC_DEFAULT);
+
/* No, normal start */
while (1)
{
bool seppuku = streq(hit_from, "Seppuku");
bool winning_seppuku = p_ptr->total_winner && seppuku;
+ music_basic(MUSIC_BASIC_GAMEOVER);
+
#ifdef WORLD_SCORE
/* Make screen dump */
screen_dump = make_screen_dump();
extern errr fd_close(int fd);
extern void flush(void);
extern void bell(void);
-extern void music(int num);
+extern void music_basic(int num);
extern void select_floor_music(void);
extern void sound(int num);
extern void move_cursor(int row, int col);
#ifdef WIN32
- mop.lpstrDeviceType = "WaveAudio";
+ mop.lpstrDeviceType = "MPEGVideo";
+ //mop.lpstrDeviceType = "WaveAudio";
mop.lpstrElementName = buf;
+ mciSendCommand(mop.wDeviceID, MCI_STOP, 0, 0);
mciSendCommand(mop.wDeviceID, MCI_OPEN, MCI_OPEN_TYPE | MCI_OPEN_ELEMENT, (DWORD)&mop);
mciSendCommand(mop.wDeviceID, MCI_SEEK, MCI_SEEK_TO_START, 0);
mciSendCommand(mop.wDeviceID, MCI_PLAY, MCI_NOTIFY, (DWORD)&mop);
}
/* Play a music */
- case TERM_XTRA_MUSIC:
+ case TERM_XTRA_MUSIC_BASIC:
{
return (Term_xtra_win_music(v));
}
/*
* Hack -- Play a music
*/
-void music(int val)
+void music_basic(int val)
{
/* No sound */
if (!use_music) return;
/* Make a sound (if allowed) */
- Term_xtra(TERM_XTRA_MUSIC, val);
+ Term_xtra(TERM_XTRA_MUSIC_BASIC, val);
}
/*
/* No sound */
if (!use_music) return;
+ if(dun_level < 40) music_basic(MUSIC_BASIC_DUN_LOW);
+ else if(dun_level < 80) music_basic(MUSIC_BASIC_DUN_MED);
+ else music_basic(MUSIC_BASIC_DUN_HIGH);
+
/* Make a sound (if allowed) */
- //TODO Term_xtra(TERM_XTRA_MUSIC, val);
+ //TODO Term_xtra(TERM_XTRA_MUSIC_BASIC, val);
}
#define TERM_XTRA_ALIVE 11 /* Change the "hard" level (optional) */
#define TERM_XTRA_LEVEL 12 /* Change the "soft" level (optional) */
#define TERM_XTRA_DELAY 13 /* Delay some milliseconds (optional) */
-#define TERM_XTRA_MUSIC 14 /* Play a music (optional) */
+#define TERM_XTRA_MUSIC_BASIC 14 /* Play a music(basic) (optional) */
+#define TERM_XTRA_MUSIC_DUNGEON 15 /* Play a music(dungeon) (optional) */
+#define TERM_XTRA_MUSIC_QUEST 16 /* Play a music(quest) (optional) */
+#define TERM_XTRA_MUSIC_TOWN 17 /* Play a music(floor) (optional) */
/**** Available Variables ****/