IsDuckVolume() public method

public IsDuckVolume ( ) : bool
return bool
 public static Color GetEffectColor(AudioMixerEffectController effect)
 {
   if (effect.IsSend())
   {
     if ((Object) effect.sendTarget != (Object) null)
       return AudioMixerDrawUtils.kSendColor;
     return Color.gray;
   }
   if (effect.IsReceive())
     return AudioMixerDrawUtils.kReceiveColor;
   if (effect.IsDuckVolume())
     return AudioMixerDrawUtils.kDuckVolumeColor;
   if (effect.IsAttenuation())
     return AudioMixerDrawUtils.kAttenuationColor;
   return AudioMixerDrawUtils.kEffectColor;
 }
 public static Color GetEffectColor(AudioMixerEffectController effect)
 {
     if (effect.IsSend())
     {
         return ((effect.sendTarget == null) ? Color.gray : kSendColor);
     }
     if (effect.IsReceive())
     {
         return kReceiveColor;
     }
     if (effect.IsDuckVolume())
     {
         return kDuckVolumeColor;
     }
     if (effect.IsAttenuation())
     {
         return kAttenuationColor;
     }
     return kEffectColor;
 }
		public GUIStyle GetEffectBarStyle(AudioMixerEffectController effect)
		{
			if (effect.IsSend() || effect.IsReceive() || effect.IsDuckVolume())
			{
				return this.styles.sendReturnBar;
			}
			if (effect.IsAttenuation())
			{
				return this.styles.attenuationBar;
			}
			return this.styles.effectBar;
		}
		private string GetEffectSlotTooltip(AudioMixerEffectController effect, Rect effectRect, AudioMixerChannelStripView.ChannelStripParams p)
		{
			if (!effectRect.Contains(Event.current.mousePosition))
			{
				return string.Empty;
			}
			if (effect.IsSend())
			{
				if (effect.sendTarget != null)
				{
					string sendTargetDisplayString = effect.GetSendTargetDisplayString(p.effectMap);
					return "Send to: " + sendTargetDisplayString;
				}
				return this.styles.emptySendSlotGUIContent.tooltip;
			}
			else
			{
				if (effect.IsReceive())
				{
					return this.styles.returnSlotGUIContent.tooltip;
				}
				if (effect.IsDuckVolume())
				{
					return this.styles.duckVolumeSlotGUIContent.tooltip;
				}
				if (effect.IsAttenuation())
				{
					return this.styles.attenuationSlotGUIContent.tooltip;
				}
				return this.styles.effectSlotGUIContent.tooltip;
			}
		}
		private static void ShowEffectContextMenu(AudioMixerGroupController group, AudioMixerEffectController effect, int effectIndex, AudioMixerController controller, Rect buttonRect)
		{
			GenericMenu genericMenu = new GenericMenu();
			if (!effect.IsReceive())
			{
				if (!effect.IsAttenuation() && !effect.IsSend() && !effect.IsDuckVolume())
				{
					genericMenu.AddItem(new GUIContent("Allow Wet Mixing (causes higher memory usage)"), effect.enableWetMix, delegate
					{
						effect.enableWetMix = !effect.enableWetMix;
					});
					genericMenu.AddItem(new GUIContent("Bypass"), effect.bypass, delegate
					{
						effect.bypass = !effect.bypass;
						controller.UpdateBypass();
						AudioMixerUtility.RepaintAudioMixerAndInspectors();
					});
					genericMenu.AddSeparator(string.Empty);
				}
				genericMenu.AddItem(new GUIContent("Copy effect settings to all snapshots"), false, delegate
				{
					Undo.RecordObject(controller, "Copy effect settings to all snapshots");
					if (effect.IsAttenuation())
					{
						controller.CopyAttenuationToAllSnapshots(group, controller.TargetSnapshot);
					}
					else
					{
						controller.CopyEffectSettingsToAllSnapshots(group, effectIndex, controller.TargetSnapshot, effect.IsSend());
					}
					AudioMixerUtility.RepaintAudioMixerAndInspectors();
				});
				if (!effect.IsAttenuation() && !effect.IsSend() && !effect.IsDuckVolume() && effect.enableWetMix)
				{
					genericMenu.AddItem(new GUIContent("Copy effect settings to all snapshots, including wet level"), false, delegate
					{
						Undo.RecordObject(controller, "Copy effect settings to all snapshots, including wet level");
						controller.CopyEffectSettingsToAllSnapshots(group, effectIndex, controller.TargetSnapshot, true);
						AudioMixerUtility.RepaintAudioMixerAndInspectors();
					});
				}
				genericMenu.AddSeparator(string.Empty);
			}
			AudioMixerChannelStripView.AddEffectItemsToMenu(controller, group, effectIndex, "Add effect before/", genericMenu);
			AudioMixerChannelStripView.AddEffectItemsToMenu(controller, group, effectIndex + 1, "Add effect after/", genericMenu);
			if (!effect.IsAttenuation())
			{
				genericMenu.AddSeparator(string.Empty);
				genericMenu.AddItem(new GUIContent("Remove this effect"), false, delegate
				{
					controller.ClearSendConnectionsTo(effect);
					controller.RemoveEffect(effect, group);
					AudioMixerUtility.RepaintAudioMixerAndInspectors();
				});
			}
			genericMenu.DropDown(buttonRect);
		}