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