FMOD_Channel_GetChannelGroup() 개인적인 메소드

private FMOD_Channel_GetChannelGroup ( IntPtr channel, IntPtr &channelgroup ) : RESULT
channel System.IntPtr
channelgroup System.IntPtr
리턴 RESULT
예제 #1
0
        public RESULT getChannelGroup(ref ChannelGroup channelgroup)
        {
            RESULT rESULT = RESULT.OK;
            IntPtr raw    = IntPtr.Zero;

            try
            {
                rESULT = Channel.FMOD_Channel_GetChannelGroup(channelraw, ref raw);
            }
            catch
            {
                rESULT = RESULT.ERR_INVALID_PARAM;
            }
            RESULT result;

            if (rESULT != RESULT.OK)
            {
                result = rESULT;
            }
            else
            {
                if (channelgroup == null)
                {
                    ChannelGroup channelGroup = new ChannelGroup();
                    channelGroup.setRaw(raw);
                    channelgroup = channelGroup;
                }
                else
                {
                    channelgroup.setRaw(raw);
                }
                result = rESULT;
            }
            return(result);
        }