mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
transposing preload sound onto sound module
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
8763a637b5
commit
a68e2fe169
@@ -2287,37 +2287,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
ScheduleTerseUpdate();
|
||||
}
|
||||
|
||||
public void PreloadSound(string sound)
|
||||
{
|
||||
// UUID ownerID = OwnerID;
|
||||
UUID objectID = ParentGroup.RootPart.UUID;
|
||||
UUID soundID = UUID.Zero;
|
||||
|
||||
if (!UUID.TryParse(sound, out soundID))
|
||||
{
|
||||
//Trys to fetch sound id from prim's inventory.
|
||||
//Prim's inventory doesn't support non script items yet
|
||||
|
||||
lock (TaskInventory)
|
||||
{
|
||||
foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory)
|
||||
{
|
||||
if (item.Value.Name == sound)
|
||||
{
|
||||
soundID = item.Value.ItemID;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ParentGroup.Scene.ForEachRootScenePresence(delegate(ScenePresence sp)
|
||||
{
|
||||
if (!(Util.GetDistanceTo(sp.AbsolutePosition, AbsolutePosition) >= 100))
|
||||
sp.ControllingClient.SendPreLoadSound(objectID, objectID, soundID);
|
||||
});
|
||||
}
|
||||
|
||||
public void RemFlag(PrimFlags flag)
|
||||
{
|
||||
// PrimFlags prevflag = Flags;
|
||||
|
||||
Reference in New Issue
Block a user