/// <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;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Popagate new suffle state.
 /// </summary>
 /// <param name="state">The new shuffle state</param>
 void HandleShuffleStateChanged(MLMusicService.ShuffleStateType state)
 {
     OnShuffleStateChanged?.Invoke(state);
 }
Beispiel #3
0
 public static extern MLResult.Code MLMusicServiceGetShuffleState(out MLMusicService.ShuffleStateType outState);
Beispiel #4
0
 private static void HandleShuffleStateChange(MLMusicService.ShuffleStateType state, IntPtr data)
 {
     MLThreadDispatch.Call(state, OnShuffleStateChange);
 }
Beispiel #5
0
 public static extern MLResult.Code MLMusicServiceSetShuffle(MLMusicService.ShuffleStateType mode);