Ejemplo n.º 1
0
        public Channel Play(Sound sound, Vector3 pos, bool loop)
        {
            FMOD.Channel channel = null;
            FMOD.RESULT result;

            result = system.playSound(FMOD.CHANNELINDEX.FREE, ((FmodSound)sound).sound, true, ref channel);
            ERRCHECK(result);

            FmodChannel c = new FmodChannel(channel);
            SetPosition(c, pos);
            if (loop)
                channel.setLoopCount(-1);

            channel.setPaused(false);
            return c;
        }
Ejemplo n.º 2
0
 public Channel Play(Sound sound, Vector3 pos, bool loop)
 {
     return new DummyChannel();
 }
Ejemplo n.º 3
0
 public void Free(Sound sound)
 {
     FMOD.RESULT result = ((FmodSound)sound).sound.release();
     ERRCHECK(result);
     ((FmodSound)sound).sound = null;
 }
Ejemplo n.º 4
0
 public void Free(Sound sound)
 {
 }