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; }
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; }
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); } }
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); }