/// <summary> /// Play a sound. /// </summary> /// <param name="sound">A CachedSound to play.</param> /// <param name="volume">What volume to play the sound (0.0 - 1.0)</param> /// <param name="isPreview">Is this sound being played as a preview? If so, ignore volume.</param> public void PlaySound(CachedSound sound, float volume, bool isPreview) { AddMixerInput(new CachedSoundSampleProvider(sound), volume, isPreview); }
public Sample(CachedSound cachedSound, string name) { this.CachedSound = cachedSound; this.Name = name; }
public CachedSoundSampleProvider(CachedSound cachedSound) { this.cachedSound = cachedSound; }