Esempio n. 1
0
        /// <summary>
        /// 設定の読み込み
        /// </summary>
        protected void LoadSettings()
        {
            // サービス利用可能チェック
            if (!TalkService.IsHostStarted)
            {
                return;
            }

            // 読み込み
            AppSettingsService.Load();

            // 設定反映
            AppSettingsService.TryGetProperty(nameof(InputFile), InputFile);
            AppSettingsService.TryGetProperty(nameof(SelectedCast), SelectedCast);
            AppSettingsService.TryGetProperty(nameof(Volume), Volume);
            AppSettingsService.TryGetProperty(nameof(Speed), Speed);
            AppSettingsService.TryGetProperty(nameof(Tone), Tone);
            AppSettingsService.TryGetProperty(nameof(Alpha), Alpha);
            AppSettingsService.TryGetProperty(nameof(ToneScale), ToneScale);
        }