Пример #1
0
 public PureDataInfo(PureDataInfo info, PureData pureData)
 {
     this.name              = info.name;
     this.path              = info.path;
     this.samples           = info.samples;
     this.frequency         = info.frequency;
     this.channels          = info.channels;
     this.length            = info.length;
     this.loadOnAwake       = info.loadOnAwake;
     this.output            = info.output;
     this.isFixed           = info.isFixed;
     this.playRangeStart    = info.playRangeStart;
     this.playRangeEnd      = info.playRangeEnd;
     this.volume            = info.volume;
     this.pitch             = info.pitch;
     this.randomVolume      = info.randomVolume;
     this.randomPitch       = info.randomPitch;
     this.fadeIn            = info.fadeIn;
     this.fadeOut           = info.fadeOut;
     this.loop              = info.loop;
     this.dopplerLevel      = info.dopplerLevel;
     this.volumeRolloffMode = info.volumeRolloffMode;
     this.minDistance       = info.minDistance;
     this.maxDistance       = info.maxDistance;
     this.panLevel          = info.panLevel;
     this.pureData          = pureData;
 }
Пример #2
0
 public void SetValue(object value)
 {
     if (value is float)
     {
         floatValue = (float)value;
     }
     else if (value is string)
     {
         stringValue = (string)value;
     }
     else if (value is bool)
     {
         boolValue = (bool)value;
     }
     else if (value is Vector2)
     {
         vector2Value = (Vector2)value;
     }
     else if (value is PureDataVolumeRolloffModes)
     {
         volumeRolloffModeValue = (PureDataVolumeRolloffModes)value;
     }
     else if (value is AudioClip)
     {
         clipValue = (AudioClip)value;
     }
 }
Пример #3
0
 public void SetDefaultValue()
 {
     floatValue             = 0;
     stringValue            = "";
     boolValue              = false;
     vector2Value           = new Vector2(0, 1);
     volumeRolloffModeValue = PureDataVolumeRolloffModes.Logarithmic;
     clipValue              = null;
 }
Пример #4
0
		public PureDataInfo(PureDataInfo info, PureData pureData) {
			this.name = info.name;
			this.path = info.path;
			this.samples = info.samples;
			this.frequency = info.frequency;
			this.channels = info.channels;
			this.length = info.length;
			this.loadOnAwake = info.loadOnAwake;
			this.output = info.output;
			this.isFixed = info.isFixed;
			this.playRangeStart = info.playRangeStart;
			this.playRangeEnd = info.playRangeEnd;
			this.volume = info.volume;
			this.pitch = info.pitch;
			this.randomVolume = info.randomVolume;
			this.randomPitch = info.randomPitch;
			this.fadeIn = info.fadeIn;
			this.fadeOut = info.fadeOut;
			this.loop = info.loop;
			this.dopplerLevel = info.dopplerLevel;
			this.volumeRolloffMode = info.volumeRolloffMode;
			this.minDistance = info.minDistance;
			this.maxDistance = info.maxDistance;
			this.panLevel = info.panLevel;
			this.pureData = pureData;
		}
Пример #5
0
 public static PureDataOption VolumeRolloffMode(PureDataVolumeRolloffModes volumeRolloffMode)
 {
     return(new PureDataOption(OptionTypes.VolumeRolloffMode, volumeRolloffMode));
 }
Пример #6
0
 public static PureDataOption VolumeRolloffMode(PureDataVolumeRolloffModes volumeRolloffMode)
 {
     return(new PureDataOption(OptionTypes.VolumeRolloffMode, volumeRolloffMode, (float)PureDataVolumeRolloffModes.Logarithmic));
 }