public RESULT getMasterChannelGroup(ref ChannelGroup channelgroup) { RESULT result = RESULT.OK; IntPtr channelgroupraw = new IntPtr(); ChannelGroup channelgroupnew = null; try { result = FMOD_System_GetMasterChannelGroup(systemraw, ref channelgroupraw); } catch { result = RESULT.ERR_INVALID_PARAM; } if (result != RESULT.OK) { return result; } if (channelgroup == null) { channelgroupnew = new ChannelGroup(); channelgroupnew.setRaw(channelgroupraw); channelgroup = channelgroupnew; } else { channelgroup.setRaw(channelgroupraw); } return result; }
// Nested channel groups. public RESULT addGroup(ChannelGroup group) { return FMOD_ChannelGroup_AddGroup(channelgroupraw, group.getRaw()); }
public RESULT getParentGroup(ref ChannelGroup group) { RESULT result = RESULT.OK; IntPtr channelraw = new IntPtr(); ChannelGroup channelnew = null; try { result = FMOD_ChannelGroup_GetParentGroup(channelgroupraw, ref channelraw); } catch { result = RESULT.ERR_INVALID_PARAM; } if (result != RESULT.OK) { return result; } if (group == null) { channelnew = new ChannelGroup(); channelnew.setRaw(channelraw); group = channelnew; } else { group.setRaw(channelraw); } return result; }
public RESULT setChannelGroup(ChannelGroup channelgroup) { return FMOD_Channel_SetChannelGroup(channelraw, channelgroup.getRaw()); }