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