Namespace: DeltaEngine.Multimedia.Tests
Assembly: DeltaEngine.Multimedia.Tests (in DeltaEngine.Multimedia.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Multimedia.Tests (in DeltaEngine.Multimedia.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[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