Example #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;
        }
Example #2
0
 public Channel Play(Sound sound, Vector3 pos, bool loop)
 {
     return new DummyChannel();
 }
Example #3
0
 public void Free(Sound sound)
 {
     FMOD.RESULT result = ((FmodSound)sound).sound.release();
     ERRCHECK(result);
     ((FmodSound)sound).sound = null;
 }
Example #4
0
 public void Free(Sound sound)
 {
 }