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;
		}
		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 getChannelGroup(ref ChannelGroup channelgroup)
		{
			RESULT result = RESULT.OK;
			IntPtr cgraw = new IntPtr();
			ChannelGroup cgnew = null;

			try
			{
				result = FMOD_Event_GetChannelGroup(eventraw, ref cgraw);
			}
			catch
			{
				result = RESULT.ERR_INVALID_PARAM;
			}
			if (result != RESULT.OK)
			{
				return result;
			}

			if (channelgroup == null)
			{
				cgnew = new ChannelGroup();
				cgnew.setRaw(cgraw);
				channelgroup = cgnew;
			}
			else
			{
				channelgroup.setRaw(cgraw);
			}

			return result;
		}