From aad55e5034c0b8024d963fe8a1aef9172e83bac8 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 11 Jul 2008 14:51:02 +0000 Subject: * Comment out body of experimental ParcelMediaSetTime() since MW says it causes a mono 1.2.4 compile to fail and MW says it will soon be replaced anyway. --- OpenSim/Region/Environment/Scenes/Scene.cs | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 6a63491..3c8df33 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -3664,21 +3664,22 @@ namespace OpenSim.Region.Environment.Scenes #endregion - - public void ParcelMediaSetTime(float time) { //should be doing this by parcel, but as its only for testing - ForEachClient(delegate(IClientAPI client) - { - client.SendParcelMediaCommand((uint)(2), ParcelMediaCommandEnum.Pause, 0); - Thread.Sleep(10); - client.SendParcelMediaCommand((uint)(64), ParcelMediaCommandEnum.Time, time); - Thread.Sleep(200); - client.SendParcelMediaCommand((uint)(4), ParcelMediaCommandEnum.Play, 0); - }); + // The use of Thread.Sleep here causes the following compiler error under mono 1.2.4 + // OpenSim/Region/Environment/Scenes/Scene.cs(3675,17): error CS0103: The name `Thread' does not exist + // in the context of `<>c__CompilerGenerated17' + // MW said it was okay to comment the body of this method out for now since the code is experimental + // and will be replaced anyway +// ForEachClient(delegate(IClientAPI client) +// { +// client.SendParcelMediaCommand((uint)(2), ParcelMediaCommandEnum.Pause, 0); +// Thread.Sleep(10); +// client.SendParcelMediaCommand((uint)(64), ParcelMediaCommandEnum.Time, time); +// Thread.Sleep(200); +// client.SendParcelMediaCommand((uint)(4), ParcelMediaCommandEnum.Play, 0); +// }); } } -} - - +} -- cgit v1.1