예제 #1
0
        /// <summary>
        /// Event Handler for miscellaneous informational events
        /// </summary>
        /// <param name="info">The event that occurred</param>
        /// <param name="extra">The data associated with the event (if any), otherwise, 0</param>
        private void HandleInfo(MLMediaPlayer.PlayerInfo info, int extra)
        {
            int audioChannelCount;

            switch (info)
            {
            case MLMediaPlayer.PlayerInfo.RenderingStart:
                _mediaPlayer.GetAudioChannelCount(out audioChannelCount);
                if (audioChannelCount == 6)
                {
                    EnableSpatialAudio();
                }
                break;
            }
        }