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; }
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; } }
public void SetDefaultValue() { floatValue = 0; stringValue = ""; boolValue = false; vector2Value = new Vector2(0, 1); volumeRolloffModeValue = PureDataVolumeRolloffModes.Logarithmic; clipValue = null; }
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; }
public static PureDataOption VolumeRolloffMode(PureDataVolumeRolloffModes volumeRolloffMode) { return(new PureDataOption(OptionTypes.VolumeRolloffMode, volumeRolloffMode)); }
public static PureDataOption VolumeRolloffMode(PureDataVolumeRolloffModes volumeRolloffMode) { return(new PureDataOption(OptionTypes.VolumeRolloffMode, volumeRolloffMode, (float)PureDataVolumeRolloffModes.Logarithmic)); }