Skip to content

Commit bab15b2

Browse files
committed
audio: Make the couldn't load warning log a debug log
Since we return -1 on Audio::RegisterSFX, let the caller determine whether to log.
1 parent ff9ab7b commit bab15b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/engine/audio/Sample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace Audio {
4949
auto audioData = LoadSoundCodec(GetName());
5050

5151
if (audioData.size == 0) {
52-
audioLogs.Warn("Couldn't load sound %s, it's empty!", GetName());
52+
audioLogs.Debug("Couldn't load sound %s, it's empty!", GetName());
5353
return false;
5454
}
5555

src/engine/audio/SoundCodec.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ AudioData LoadSoundCodec(std::string filename)
7575
int bestLoader = -1;
7676
const FS::PakInfo* bestPak = nullptr;
7777
std::string strippedname = FS::Path::StripExtension(filename);
78-
78+
7979
for (int i = 0; i < numSoundLoaders; i++)
8080
{
8181
std::string altName = Str::Format("%s%s", strippedname, soundLoaders[i].ext);
@@ -102,7 +102,7 @@ AudioData LoadSoundCodec(std::string filename)
102102
return AudioData();
103103
}
104104

105-
audioLogs.Warn("Sound file %s not found.", filename);
105+
audioLogs.Debug("Sound file %s not found.", filename);
106106
return AudioData();
107107

108108
}

0 commit comments

Comments
 (0)