OSDN Git Service

#28821 DTXC:DTXManiaをViewerにしたときに、DTXC側から、GRモード, TimeStretch, VSyncWaitの設定ができるようにした。
[dtxmania/dtxmania.git] / DTXCreatorプロジェクト / コード / 03.オプション関連 / Cオプション管理.cs
index 87c8fc1..2387325 100644 (file)
@@ -36,8 +36,16 @@ namespace DTXCreator.オプション関連
                        cオプションダイアログ.radioButton_WASAPI.Checked = this.formメインフォーム.appアプリ設定.ViewerInfo.SoundType == FDK.ESoundDeviceType.ExclusiveWASAPI;\r
                        cオプションダイアログ.radioButton_ASIO.Checked = this.formメインフォーム.appアプリ設定.ViewerInfo.SoundType == FDK.ESoundDeviceType.ASIO;\r
 \r
-                       cオプションダイアログ.tASIOデバイスリストの内訳を生成する();\r
+                       int nASIOdevs = cオプションダイアログ.tASIOデバイスリストの内訳を生成する();\r
                        cオプションダイアログ.comboBox_ASIOdevices.SelectedIndex = this.formメインフォーム.appアプリ設定.ViewerInfo.ASIODeviceNo;\r
+                       if ( nASIOdevs == 1 && cオプションダイアログ.comboBox_ASIOdevices.Items[ 0 ].ToString() == "None" )\r
+                       {\r
+                               cオプションダイアログ.radioButton_ASIO.Enabled = false;\r
+                       }\r
+\r
+                       cオプションダイアログ.checkBox_GRmode.Checked = this.formメインフォーム.appアプリ設定.ViewerInfo.GRmode;\r
+                       cオプションダイアログ.checkBox_TimeStretch.Checked = this.formメインフォーム.appアプリ設定.ViewerInfo.TimeStretch;\r
+                       cオプションダイアログ.checkBox_VSyncWait.Checked = this.formメインフォーム.appアプリ設定.ViewerInfo.VSyncWait;\r
                        #endregion\r
 \r
 \r
@@ -81,6 +89,11 @@ namespace DTXCreator.オプション関連
                                this.formメインフォーム.appアプリ設定.ViewerInfo.SoundType = vst;\r
 \r
                                this.formメインフォーム.appアプリ設定.ViewerInfo.ASIODeviceNo = cオプションダイアログ.comboBox_ASIOdevices.SelectedIndex;\r
+\r
+                               this.formメインフォーム.appアプリ設定.ViewerInfo.GRmode = cオプションダイアログ.checkBox_GRmode.Checked;\r
+                               this.formメインフォーム.appアプリ設定.ViewerInfo.TimeStretch = cオプションダイアログ.checkBox_TimeStretch.Checked;\r
+                               this.formメインフォーム.appアプリ設定.ViewerInfo.VSyncWait = cオプションダイアログ.checkBox_VSyncWait.Checked;\r
+\r
                                this.formメインフォーム.tDTXV演奏関連のボタンとメニューのEnabledの設定();\r
 \r
                                #endregion\r