Esempio n. 1
0
		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;
		}
Esempio n. 2
0
		// Nested channel groups.
		public RESULT addGroup(ChannelGroup group)
		{
			return FMOD_ChannelGroup_AddGroup(channelgroupraw, group.getRaw());
		}
Esempio n. 3
0
		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;
		}
Esempio n. 4
0
		public RESULT setChannelGroup(ChannelGroup channelgroup)
		{
			return FMOD_Channel_SetChannelGroup(channelraw, channelgroup.getRaw());
		}
		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;
		}