Put audio related problems into sound.log

This commit is contained in:
Matthias Mailänder
2013-07-31 22:13:18 +02:00
parent 8f5a1333d2
commit 332759a5f5
2 changed files with 4 additions and 3 deletions

View File

@@ -259,6 +259,7 @@ namespace OpenRA
Log.AddChannel("debug", "debug.log"); Log.AddChannel("debug", "debug.log");
Log.AddChannel("sync", "syncreport.log"); Log.AddChannel("sync", "syncreport.log");
Log.AddChannel("server", "server.log"); Log.AddChannel("server", "server.log");
Log.AddChannel("sound", "sound.log");
if (Settings.Server.DiscoverNatDevices) if (Settings.Server.DiscoverNatDevices)
UPnP.TryNatDiscovery(); UPnP.TryNatDiscovery();

View File

@@ -31,7 +31,7 @@ namespace OpenRA
{ {
if (!FileSystem.Exists(filename)) if (!FileSystem.Exists(filename))
{ {
Log.Write("debug", "LoadSound, file does not exist: {0}", filename); Log.Write("sound", "LoadSound, file does not exist: {0}", filename);
return null; return null;
} }
@@ -390,7 +390,7 @@ namespace OpenRA
Al.alGenSources(1, out source); Al.alGenSources(1, out source);
if (0 != Al.alGetError()) if (0 != Al.alGetError())
{ {
Log.Write("debug", "Failed generating OpenAL source {0}", i); Log.Write("sound", "Failed generating OpenAL source {0}", i);
return; return;
} }
@@ -442,7 +442,7 @@ namespace OpenRA
{ {
if (sound == null) if (sound == null)
{ {
Log.Write("debug", "Attempt to Play2D a null `ISoundSource`"); Log.Write("sound", "Attempt to Play2D a null `ISoundSource`");
return null; return null;
} }