Debug logging: add sound category
This commit is contained in:
@@ -47,6 +47,7 @@ int _debug_desync_level;
|
||||
int _debug_yapfdesync_level;
|
||||
int _debug_console_level;
|
||||
int _debug_linkgraph_level;
|
||||
int _debug_sound_level;
|
||||
#ifdef RANDOM_DEBUG
|
||||
int _debug_random_level;
|
||||
#endif
|
||||
@@ -77,6 +78,7 @@ struct DebugLevel {
|
||||
DEBUG_LEVEL(yapfdesync),
|
||||
DEBUG_LEVEL(console),
|
||||
DEBUG_LEVEL(linkgraph),
|
||||
DEBUG_LEVEL(sound),
|
||||
#ifdef RANDOM_DEBUG
|
||||
DEBUG_LEVEL(random),
|
||||
#endif
|
||||
|
@@ -55,6 +55,7 @@
|
||||
extern int _debug_yapfdesync_level;
|
||||
extern int _debug_console_level;
|
||||
extern int _debug_linkgraph_level;
|
||||
extern int _debug_sound_level;
|
||||
#ifdef RANDOM_DEBUG
|
||||
extern int _debug_random_level;
|
||||
#endif
|
||||
|
@@ -46,7 +46,7 @@ static void OpenBankFile(const char *filename)
|
||||
/* Corrupt sample data? Just leave the allocated memory as those tell
|
||||
* there is no sound to play (size = 0 due to calloc). Not allocating
|
||||
* the memory disables valid NewGRFs that replace sounds. */
|
||||
DEBUG(misc, 6, "Incorrect number of sounds in '%s', ignoring.", filename);
|
||||
DEBUG(sound, 6, "Incorrect number of sounds in '%s', ignoring.", filename);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ static bool SetBankSource(MixerChannel *mc, const SoundEntry *sound)
|
||||
|
||||
void InitializeSound()
|
||||
{
|
||||
DEBUG(misc, 1, "Loading sound effects...");
|
||||
DEBUG(sound, 1, "Loading sound effects...");
|
||||
OpenBankFile(BaseSounds::GetUsedSet()->files->filename);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user