public int PlayEffect(int soundId, string filePath, bool loop = false, double pitch = 1.0D, double pan = 0.0D, double gain = 100.0D) { if (mEngine == null) { return(0); } string loopValue = loop ? "true" : "false"; string fmt = "{{\"che.audio.game_play_effect\": {{\"soundId\":{0},\"filePath\":\"{1}\",\"loop\":{2},\"pitch\":{3:0.00},\"pan\":{4:0.00},\"gain\":{5:0.00}}}}}"; string parameters = mEngine.doFormat(fmt, soundId, filePath, loopValue, pitch, pan, gain); return(mEngine.SetParameters(parameters)); }