| Namespace | Windows.Devices.Midi2.Utilities.Sequencing |
|---|---|
| Type Name | MidiSequencePlayerState |
| Type | WinRT Enumeration (a 32-bit unsigned or signed integer) |
| IDL | MidiSequencePlayerStateEnum.idl |
MidiSequencePlayerState is the State of a MidiSequencePlayer, and is also carried in MidiSequencePlayerPosition.
| Value | Numeric Value | Description |
|---|---|---|
NoSequence |
0 |
No sequence has been loaded yet, so there’s nothing to play |
Stopped |
1 |
A sequence is loaded, and the position is at the start |
Playing |
2 |
Messages are being scheduled and sent |
Paused |
3 |
Playback is paused, and the current position is kept |
Handle the player’s StateChanged event to keep your transport buttons up to date, instead of assuming the state after each call. When playback reaches the end of a sequence, the player leaves Playing on its own, and also raises PlaybackEnded.
