*/
static concptr sound_file[SOUND_MAX][SAMPLE_SOUND_MAX];
-#ifdef USE_MUSIC
-
#define SAMPLE_MUSIC_MAX 16
static concptr music_file[MUSIC_BASIC_MAX][SAMPLE_MUSIC_MAX];
static concptr dungeon_music_file[1000][SAMPLE_MUSIC_MAX];
int current_music_type = 0;
int current_music_id = 0;
-#endif /* USE_MUSIC */
-
-
/*
* Full path to ANGBAND.INI
*/
static concptr ANGBAND_DIR_XTRA_SOUND;
static concptr ANGBAND_DIR_XTRA_MUSIC;
static concptr ANGBAND_DIR_XTRA_HELP;
-#ifdef USE_MUSIC
static concptr ANGBAND_DIR_XTRA_MUSIC;
-#endif
-
/*
* The "complex" color values
}
}
-#if defined(USE_MUSIC)
/*
* - Taken from files.c.
return (k);
}
-#endif /* USE_MUSIC */
static void load_sound_prefs(void)
{
}
-#ifdef USE_MUSIC
-
static void load_music_prefs(void)
{
int i, j, num;
}
-#endif /* USE_MUSIC */
/*
* Create the new global palette based on the bitmap palette
}
-#ifdef USE_MUSIC
/*
* Initialize music
*/
mciSendCommand(mop.wDeviceID, MCI_CLOSE, 0, 0);
}
-#endif /* USE_MUSIC */
/*
* Initialize sound
use_sound = arg_sound;
}
-#ifdef USE_MUSIC
-
/* Handle "arg_sound" */
if (use_music != arg_music)
{
}
-#endif
-
/* Handle "arg_graphics" */
if (use_graphics != arg_graphics)
{
*/
static errr term_xtra_win_music(int n, int v)
{
-#ifdef USE_MUSIC
int i = 0;
char buf[1024];
-#endif /* USE_MUSIC */
-
/* Sound disabled */
if (n == TERM_XTRA_MUSIC_MUTE)
{
if (n == TERM_XTRA_MUSIC_BASIC && ((v < 0) || (v >= MUSIC_BASIC_MAX))) return 1;
else if (v < 0 || v >= 1000) return(1); /*!< TODO */
-#ifdef USE_MUSIC
-
switch (n)
{
case TERM_XTRA_MUSIC_BASIC:
return 0;
#endif /* WIN32 */
-
-#else /* USE_MUSIC */
-
- return 1;
-
-#endif /* USE_MUSIC */
-
}
case WM_CREATE:
{
-#ifdef USE_MUSIC
mop.dwCallback = (DWORD)hWnd;
-#endif
return 0;
}
return 0;
}
-#ifdef USE_MUSIC
case MM_MCINOTIFY:
{
if (wParam == MCI_NOTIFY_SUCCESSFUL)
}
return 0;
}
-#endif
case WM_SYSKEYDOWN:
case WM_KEYDOWN:
/* Validate the "sound" directory */
validate_dir(ANGBAND_DIR_XTRA_SOUND, FALSE);
-#ifdef USE_MUSIC
-
/* Build the "music" path */
path_build(path, sizeof(path), ANGBAND_DIR_XTRA, "music");
/* Validate the "music" directory */
validate_dir(ANGBAND_DIR_XTRA_MUSIC, FALSE);
-#endif /* USE_MUSIC */
-
/* Build the "help" path */
path_build(path, sizeof(path), ANGBAND_DIR_XTRA, "help");
/* validate_dir(ANGBAND_DIR_XTRA_HELP); */
}
+
/*!
* @brief (Windows固有)変愚蛮怒が起動済かどうかのチェック
*/