Music Stop Method Delta Engine Documentation

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

public void Stop()
Remarks

Tests: DeltaEngine.Multimedia.Tests.MusicTests
Examples

1 unit tests call DeltaEngine.Multimedia.Music.Stop
[Test, Ignore]
public void StartAndStopMusic()
{
    var music = ContentLoader.Load<Music>("DefaultMusic");
    AssertBetween(4.10f, 4.15f, music.DurationInSeconds);
    new MusicPlayedOneSecondTester(music);
    music.Play();
    Assert.IsTrue(music.IsPlaying());
}
See Also