/** * <summary>copy constructor - uses same sample, but loads again </summary> * <exception cref="ContentLoadException">if the file could not be loaded</exception> */ public AudioSample(AudioSample other) { this._fn = other._fn; createFMODSound(this._fn); }
/** * construct event that specifies an audio sample, use for * new (not yet loaded) audio samples typically. * <exception cref="ContentLoadException">if the file could not be loaded</exception> */ public SampleSoundEvent(string fn) : base() { _audio = new AudioSample(fn); UpdateDuration(_audio.Duration); }
/** * constructor that saves memory by re-using the internal AudioSample obj * of another SampleSoundEvent */ public SampleSoundEvent(SampleSoundEvent ev) : base(ev) { _audio = ev._audio; UpdateDuration(_audio.Duration); }