namespace MoonWorks.Audio
{
///
/// These voices are intended for playing one-off sound effects that don't have a long term reference.
///
public class TransientVoice : SourceVoice, IPoolable
{
static TransientVoice IPoolable.Create(AudioDevice device, Format format)
{
return new TransientVoice(device, format);
}
public TransientVoice(AudioDevice device, Format format) : base(device, format)
{
}
public override void Update()
{
lock (StateLock)
{
if (BuffersQueued == 0)
{
Return();
}
}
}
}
}