Exemple #1
0
        public static string AudioRedirectionModeToString(AudioRedirectionMode mode)
        {
            switch (mode)
            {
            case AudioRedirectionMode.Client:
                return("Bring to this computer");

            case AudioRedirectionMode.Remote:
                return("Leave at remote computer");

            case AudioRedirectionMode.NoSound:
                return("Do not play");

            default:
                throw new Exception("Unexpected AudioRedirectionMode:" + mode.ToString());
            }
        }
Exemple #2
0
 /// <summary>
 /// Method to translate <see cref="AudioRedirectionMode"/>.
 /// </summary>
 /// <param name="audioRedirectionMode"><see cref="AudioRedirectionMode"/>.</param>
 /// <returns>Translated <see cref="AudioRedirectionMode"/>.</returns>
 public string Translate(AudioRedirectionMode audioRedirectionMode)
 {
     return(Translate(audioRedirectionMode.ToString()));
 }