public override void SoundPlayMsg(icSound sound)
        {
            BSONObject b = new BSONObject();

            b["id"] = sound.GetId();
            bsonChildren["play"].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);
 }
 public override void SoundPlayRateMsg(icSound sound)
 {
     BSONObject b = new BSONObject();
     b["id"] = sound.GetId();
     b["speed"] = sound.PlayRate;
     bsonChildren["playrate"].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);
        }
Exemplo n.º 5
0
        public int SoundCreated(icSound sound)
        {
            allSounds.Add(sound);

            this.SoundLoadMsg(sound);

            return((this.curSoundId)++);
        }
        public override void SoundVolumeMsg(icSound sound)
        {
            BSONObject b = new BSONObject();
            b["id"] = sound.GetId();
            b["volume"] = sound.Volume;

            bsonChildren["volume"].Add(b);
        }
        public override void SoundSeekMsg(icSound sound, int milliseconds)
        {
            BSONObject b = new BSONObject();
            b["id"] = sound.GetId();
            b["t"] = milliseconds;

            bsonChildren["time"].Add (b);
        }
Exemplo n.º 8
0
        public int SoundCreated(icSound sound)
        {
            allSounds.Add(sound);

            this.SoundLoadMsg(sound);

            return (this.curSoundId)++;
        }
        public override void SoundPlayRateMsg(icSound sound)
        {
            BSONObject b = new BSONObject();

            b["id"]    = sound.GetId();
            b["speed"] = sound.PlayRate;
            bsonChildren["playrate"].Add(b);
        }
Exemplo n.º 10
0
        public override void SoundVolumeMsg(icSound sound)
        {
            BSONObject b = new BSONObject();

            b["id"]     = sound.GetId();
            b["volume"] = sound.Volume;

            bsonChildren["volume"].Add(b);
        }
Exemplo n.º 11
0
        // Use this for initialization
        void Start()
        {
            testSound = gameObject.AddComponent("icSound") as icSound;

            testSound.filePath = soundFile;
            testSound.looping = true;
            testSound.streaming = true;
            testSound.volume = 1.0f;
        }
Exemplo n.º 12
0
        public override void SoundSeekMsg(icSound sound, int milliseconds)
        {
            BSONObject b = new BSONObject();

            b["id"] = sound.GetId();
            b["t"]  = milliseconds;

            bsonChildren["time"].Add(b);
        }
Exemplo n.º 13
0
        // Use this for initialization
        void Start()
        {
            testSound = gameObject.AddComponent("icSound") as icSound;

            testSound.filePath  = soundFile;
            testSound.looping   = true;
            testSound.streaming = true;
            testSound.volume    = 1.0f;
        }
Exemplo n.º 14
0
        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);
        }
Exemplo n.º 15
0
 protected abstract void SoundLoadMsg(icSound sound);
Exemplo n.º 16
0
 public abstract void SoundVolumeMsg(icSound sound);
Exemplo n.º 17
0
 public abstract void SoundSeekMsg(icSound sound, int milliseconds);
Exemplo n.º 18
0
 public abstract void SoundPositionMsg(icSound sound);
Exemplo n.º 19
0
 public abstract void SoundPlayRateMsg(icSound sound);
Exemplo n.º 20
0
 public override void SoundPlayMsg(icSound sound)
 {
     BSONObject b = new BSONObject();
     b["id"] = sound.GetId();
     bsonChildren["play"].Add(b);
 }
Exemplo n.º 21
0
 abstract public void SoundSeekMsg(icSound sound, int milliseconds);
Exemplo n.º 22
0
 abstract public void SoundPlayRateMsg(icSound sound);
Exemplo n.º 23
0
 abstract public void SoundPositionMsg(icSound sound);
Exemplo n.º 24
0
 abstract public void SoundVolumeMsg(icSound sound);
Exemplo n.º 25
0
 abstract protected void SoundLoadMsg(icSound sound);
Exemplo n.º 26
0
        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);
        }