SoundDevice IsPauseable Property Delta Engine Documentation

Namespace: DeltaEngine.Multimedia
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public override bool IsPauseable { get; }

Property Value

Type: Boolean
Remarks

Tests: DeltaEngine.Multimedia.Tests.SoundDeviceTests
Examples

1 unit tests call DeltaEngine.Multimedia.SoundDevice.IsPauseable
[Test, CloseAfterFirstFrame]
public void PlayAndStopMusic()
{
    var device = new MockSoundDevice();
    Assert.IsFalse(device.IsPauseable);
    Assert.IsTrue(device.IsInitialized);
    var musicTime = ContentLoader.Load<Music>("DefaultMusic");
    musicTime.StreamFinished = () => { };
    musicTime.Play();
    Assert.AreEqual(Settings.Current.MusicVolume, musicTime.Volume);
    device.RegisterCurrentMusic(musicTime);
    musicTime.Stop();
    device.RapidUpdate();
    musicTime.Loop = true;
    musicTime.Stop();
    device.RapidUpdate();
    device.Dispose();
}
See Also