MusicTests PlayMusicOnClick Method Delta Engine Documentation

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

public void PlayMusicOnClick()
Examples

[Test, Ignore]
public void PlayMusicOnClick()
{
    new FontText(Font.Default, "Click to Play", Rectangle.One);
    var music = ContentLoader.Load<Music>("DefaultMusic");
    new Command(() => { music.Play(1); }).Add(new MouseButtonTrigger());
}
See Also