NOW LOADING

MidiSequencePlayerState


What a sequence player is currently doing
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.

Values

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

Remarks

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.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.