/// <summary> /// Set the visual state of the shuffle button when the internal shuffle state changes. /// </summary> /// <param name="state">The new state</param> void HandleShuffleStateChanged(MLMusicService.ShuffleStateType state) { switch (state) { case MLMusicService.ShuffleStateType.On: shuffleButton.Material = shuffleOnMaterial; break; case MLMusicService.ShuffleStateType.Off: shuffleButton.Material = shuffleOffMaterial; break; default: break; } }
/// <summary> /// Popagate new suffle state. /// </summary> /// <param name="state">The new shuffle state</param> void HandleShuffleStateChanged(MLMusicService.ShuffleStateType state) { OnShuffleStateChanged?.Invoke(state); }
public static extern MLResult.Code MLMusicServiceGetShuffleState(out MLMusicService.ShuffleStateType outState);
private static void HandleShuffleStateChange(MLMusicService.ShuffleStateType state, IntPtr data) { MLThreadDispatch.Call(state, OnShuffleStateChange); }
public static extern MLResult.Code MLMusicServiceSetShuffle(MLMusicService.ShuffleStateType mode);