public override void SoundPositionMsg(icSound sound)
 {
     BSONObject b = new BSONObject();
     b["id"] = sound.GetId();
     b["position"] = WorldToBellowsPosition(sound.GetWorldPosition());
     bsonChildren["move"].Add (b);
 }
        public override void SoundPositionMsg(icSound sound)
        {
            BSONObject b = new BSONObject();

            b["id"]       = sound.GetId();
            b["position"] = WorldToBellowsPosition(sound.GetWorldPosition());
            bsonChildren["move"].Add(b);
        }
        protected override void SoundLoadMsg(icSound sound)
        {
            BSONObject b = new BSONObject();

            b["id"]        = sound.GetId();
            b["streaming"] = new BSONValue(sound.IsStreaming());
            b["looping"]   = new BSONValue(sound.IsLooping());
            b["videosync"] = new BSONValue(sound.IsVideoSync());
            b["permanent"] = new BSONValue(true);
            b["path"]      = sound.GetFilePath();
            b["speed"]     = sound.PlayRate;
            b["volume"]    = sound.Volume;

            b["position"] = WorldToBellowsPosition(sound.GetWorldPosition());

            bsonChildren["load"].Add(b);
        }
        protected override void SoundLoadMsg(icSound sound)
        {
            BSONObject b = new BSONObject();
            b["id"] = sound.GetId();
            b["streaming"] = new BSONValue(sound.IsStreaming());
            b["looping"] = new BSONValue(sound.IsLooping());
            b["videosync"] = new BSONValue(sound.IsVideoSync());
            b["permanent"] = new BSONValue(true);
            b["path"] = sound.GetFilePath();
            b["speed"] = sound.PlayRate;
            b["volume"] = sound.Volume;

            b["position"] = WorldToBellowsPosition(sound.GetWorldPosition());

            bsonChildren["load"].Add (b);
        }