From 332759a5f5099bb848fd89dab343c78e0dd9ae45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 31 Jul 2013 22:13:18 +0200 Subject: [PATCH] Put audio related problems into sound.log --- OpenRA.Game/Game.cs | 1 + OpenRA.Game/Sound.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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; }