Example #1
0
 /// <summary>
 /// Sets the current profile
 /// </summary>
 /// <param name="profile"></param>
 private void SetCurrentProfile(DolbyProfile profile)
 {
     if (this.platformSpecificDolbyService != null)
     {
         this.platformSpecificDolbyService.DolbyProfile = profile;
     }
 }
        /// <summary>
        /// Froms the enum.
        /// </summary>
        /// <param name="profile">The profile.</param>
        /// <returns></returns>
        private DolbyAudioProcessing.PROFILE FromEnum(DolbyProfile profile)
        {
            DolbyAudioProcessing.PROFILE result;

            switch (profile)
            {
            case DolbyProfile.GAME:
                result = DolbyAudioProcessing.PROFILE.Game;
                break;

            case DolbyProfile.MOVIE:
                result = DolbyAudioProcessing.PROFILE.Movie;
                break;

            case DolbyProfile.MUSIC:
                result = DolbyAudioProcessing.PROFILE.Music;
                break;

            case DolbyProfile.VOICE:
                result = DolbyAudioProcessing.PROFILE.Voice;
                break;

            default:
                result = DolbyAudioProcessing.PROFILE.Music;
                break;
            }

            return(result);
        }
Example #3
0
        /// <summary>
        /// Get Current Profile. MUSIC by default if not supported
        /// </summary>
        private DolbyProfile GetCurrentProfile()
        {
            DolbyProfile res = DolbyProfile.MUSIC;

            if (this.platformSpecificDolbyService != null)
            {
                res = this.platformSpecificDolbyService.DolbyProfile;
            }

            return(res);
        }
Example #4
0
 /// <summary>
 /// Sets the current profile
 /// </summary>
 /// <param name="profile"></param>
 private void SetCurrentProfile(DolbyProfile profile)
 {
     if (this.platformSpecificDolbyService != null)
     {
         this.platformSpecificDolbyService.DolbyProfile = profile;
     }
 }