示例#1
0
    public static int ClipAudioByLength_s(IntPtr l)
    {
        int result;

        try
        {
            AudioClip ac;
            LuaObject.checkType <AudioClip>(l, 1, out ac);
            float realRecordLength;
            LuaObject.checkType(l, 2, out realRecordLength);
            AudioClip o = AudioUtility.ClipAudioByLength(ac, realRecordLength);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }