コード例 #1
0
 public IChannelGlue PlaySound(ISoundGlue sound, bool paused, bool looping)
 {
     var channel = ((JMOD.ISound)sound.InnerSoundObject).Play(paused, looping);
     if (channel != null)
         return new JMODChannel(channel);
     else
         return null;
 }
コード例 #2
0
        public IChannelGlue PlaySound(ISoundGlue sound, bool paused, bool looping)
        {
            FMOD.Channel channel = null;
            var result = system.playSound(FMOD.CHANNELINDEX.FREE, (FMOD.Sound)sound.InnerSoundObject, paused, ref channel);

            if (result == FMOD.RESULT.ERR_NOTREADY)
                return null;

            FMODManager.ERRCHECK(result);
            var fmodChannel = new FMODChannel(channel, looping);
            return fmodChannel;
        }
コード例 #3
0
        public IChannelGlue PlaySound(ISoundGlue sound, bool paused, bool looping)
        {
            var channel = ((JMOD.ISound)sound.InnerSoundObject).Play(paused, looping);

            if (channel != null)
            {
                return(new JMODChannel(channel));
            }
            else
            {
                return(null);
            }
        }
コード例 #4
0
        public IChannelGlue PlaySound(ISoundGlue sound, bool paused, bool looping)
        {
            FMOD.Channel channel = null;
            var          result  = system.playSound(FMOD.CHANNELINDEX.FREE, (FMOD.Sound)sound.InnerSoundObject, paused, ref channel);

            if (result == FMOD.RESULT.ERR_NOTREADY)
            {
                return(null);
            }

            FMODManager.ERRCHECK(result);
            var fmodChannel = new FMODChannel(channel, looping);

            return(fmodChannel);
        }