diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index a29a7b9ee3..4693533a10 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -259,6 +259,7 @@ namespace OpenRA Log.AddChannel("debug", "debug.log"); Log.AddChannel("sync", "syncreport.log"); Log.AddChannel("server", "server.log"); + Log.AddChannel("sound", "sound.log"); if (Settings.Server.DiscoverNatDevices) UPnP.TryNatDiscovery(); diff --git a/OpenRA.Game/Sound.cs b/OpenRA.Game/Sound.cs index 78281f8d22..5dc5e4f3d4 100644 --- a/OpenRA.Game/Sound.cs +++ b/OpenRA.Game/Sound.cs @@ -31,7 +31,7 @@ namespace OpenRA { 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; } @@ -390,7 +390,7 @@ namespace OpenRA Al.alGenSources(1, out source); if (0 != Al.alGetError()) { - Log.Write("debug", "Failed generating OpenAL source {0}", i); + Log.Write("sound", "Failed generating OpenAL source {0}", i); return; } @@ -442,7 +442,7 @@ namespace OpenRA { if (sound == null) { - Log.Write("debug", "Attempt to Play2D a null `ISoundSource`"); + Log.Write("sound", "Attempt to Play2D a null `ISoundSource`"); return null; }