OSDN Git Service

#36057 BackSleep,SleepPerFrame,PolyphonicSoundsをCONFIGURATIONで設定できるようにした。
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Thu, 28 Jul 2016 17:49:34 +0000 (17:49 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Thu, 28 Jul 2016 17:49:34 +0000 (17:49 +0000)
#xxxxx 英文メッセージのスペルミスを、いくつか修正。
#xxxxx PolyphonicSounds関係の変数名を変更。

git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@1007 16f42ceb-6dc6-49c8-ba94-f2d53467949d

DTXManiaプロジェクト/コード/スコア、曲/CDTX.cs
DTXManiaプロジェクト/コード/スコア、曲/CDTXNestedTypes.cs
DTXManiaプロジェクト/コード/ステージ/02.タイトル/CActEnumSongs.cs
DTXManiaプロジェクト/コード/ステージ/04.コンフィグ/CActConfigList.cs
DTXManiaプロジェクト/コード/ステージ/04.コンフィグ/CConfigXml.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/CStage演奏画面共通.cs
実行時フォルダ(DTXCreator)/dll/FDK.dll
実行時フォルダ/DTXManiaGR.exe
実行時フォルダ/System/resources.csv
実行時フォルダ/System/resources.xlsx
実行時フォルダ/dll/FDK.dll

index 05d3087..36696fa 100644 (file)
@@ -214,7 +214,7 @@ namespace DTXMania
                        this.stGDAParam = stgdaparamArray;\r
                        #endregion\r
                        this.nBGMAdjust = 0;\r
-                       this.nPolyphonicSounds = CDTXMania.Instance.ConfigIni.nPoliphonicSounds;\r
+                       this.nPolyphonicSounds = CDTXMania.Instance.ConfigIni.nPolyphonicSounds;\r
                        this.dbDTXVPlaySpeed = 1.0f;\r
                        this.bUse556x710BGAAVI = false;\r
                        this.n使用レーン数 = new STDGBSValue<EUseLanes>();\r
index 3fed9e5..da8fea6 100644 (file)
@@ -380,13 +380,13 @@ namespace DTXMania
                        public List<EChannel> listこのWAVを使用するチャンネル番号の集合 = new List<EChannel>(16);\r
                        public int nチップサイズ = 100;\r
                        public int n位置;\r
-                       public long[] n一時停止時刻 = new long[CDTXMania.Instance.ConfigIni.nPoliphonicSounds]; // 4\r
+                       public long[] n一時停止時刻 = new long[CDTXMania.Instance.ConfigIni.nPolyphonicSounds]; // 4\r
                        public int n音量 = 100;\r
                        public int n現在再生中のサウンド番号;\r
-                       public long[] n再生開始時刻 = new long[CDTXMania.Instance.ConfigIni.nPoliphonicSounds]; // 4\r
+                       public long[] n再生開始時刻 = new long[CDTXMania.Instance.ConfigIni.nPolyphonicSounds]; // 4\r
                        public int n内部番号;\r
                        public int n表記上の番号;\r
-                       public CSound[] rSound = new CSound[CDTXMania.Instance.ConfigIni.nPoliphonicSounds];    // 4\r
+                       public CSound[] rSound = new CSound[CDTXMania.Instance.ConfigIni.nPolyphonicSounds];    // 4\r
                        public string strコメント文 = "";\r
                        public string strファイル名 = "";\r
                        public bool bBGMとして使わない\r
@@ -437,7 +437,7 @@ namespace DTXMania
 \r
                                if (bManagedリソースの解放も行う)\r
                                {\r
-                                       for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPoliphonicSounds; i++)  // 4\r
+                                       for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPolyphonicSounds; i++)  // 4\r
                                        {\r
                                                if (this.rSound[i] != null)\r
                                                        CDTXMania.Instance.Sound管理.tサウンドを破棄する(this.rSound[i]);\r
index 0a0ce23..343caa1 100644 (file)
@@ -84,26 +84,24 @@ namespace DTXMania
                        {\r
                                this.txDialogNowEnumeratingSongs = null;\r
                        }\r
-\r
                        try\r
                        {\r
-                               System.Drawing.Font ftMessage = new System.Drawing.Font("MS PGothic", 40, FontStyle.Bold, GraphicsUnit.Pixel);\r
+                               System.Drawing.Font ftMessage = new System.Drawing.Font( @"MS PGothic", 40.0f, FontStyle.Bold, GraphicsUnit.Pixel );\r
                                string strMessage = CDTXMania.Instance.Resources.Explanation("strEnumeratingSongs");\r
-                               if ((strMessage != null) && (strMessage.Length > 0))\r
+                               if ( ( strMessage != null ) && ( strMessage.Length > 0 ) )\r
                                {\r
-                                       Bitmap image = new Bitmap( 1, 1 );\r
+                                       Bitmap image = new Bitmap(1, 1);\r
                                        Graphics graphics = Graphics.FromImage(image);\r
                                        SizeF ef = graphics.MeasureString(strMessage, ftMessage);\r
-                                       Size size = new Size((int)Math.Ceiling((double)ef.Width), (int)Math.Ceiling((double)ef.Height));\r
+                                       Size size = new Size( (int) Math.Ceiling( (double) ef.Width ), (int) Math.Ceiling( (double) ef.Height ) );\r
                                        graphics.Dispose();\r
                                        image.Dispose();\r
                                        image = new Bitmap(size.Width, size.Height);\r
                                        graphics = Graphics.FromImage(image);\r
                                        graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;\r
-                                       graphics.DrawString(strMessage, ftMessage, Brushes.White, (float)0f, (float)0f);\r
+                                       graphics.DrawString(strMessage, ftMessage, Brushes.White, (float) 0f, (float) 0f);\r
                                        graphics.Dispose();\r
                                        this.txMessage = new CTexture(CDTXMania.Instance.Device, image, CDTXMania.Instance.TextureFormat);\r
-                                       //this.txMessage.vc拡大縮小倍率 = new Vector3(0.5f, 0.5f, 1f);\r
                                        image.Dispose();\r
                                        TextureFactory.t安全にDisposeする(ref ftMessage);\r
                                }\r
index fdb8f6c..9d2e63f 100644 (file)
@@ -414,6 +414,8 @@ namespace DTXMania
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.eActiveInst);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.nPlaySpeed);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.bTimeStretch);\r
+                               list項目リスト.Add(CDTXMania.Instance.ConfigIni.nSleepPerFrameMs);\r
+                               list項目リスト.Add(CDTXMania.Instance.ConfigIni.nSleepUnfocusMs);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.bForceHighPowerPlan);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.bStageFailed);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.bRandSubBox);\r
@@ -437,6 +439,7 @@ namespace DTXMania
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.strASIODevice );\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.bUseOSTimer);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.nMasterVolume);\r
+                               list項目リスト.Add(CDTXMania.Instance.ConfigIni.nPolyphonicSounds);\r
                                list項目リスト.Add(CDTXMania.Instance.ConfigIni.bUseBoxDefSkin);\r
                                list項目リスト.Add(skins);\r
                                list項目リスト.Add(DisplayMenu.System);\r
index 3b965e5..cba7a56 100644 (file)
@@ -192,7 +192,7 @@ namespace DTXMania
                // #28228 2012.5.1 yyagi レーン毎の最大同時発音数 \r
                // #24820 2013.1.15 yyagi 初期値を4から2に変更。BASS.net使用時の負荷軽減のため。\r
                // #24820 2013.1.17 yyagi 初期値を4に戻した。動的なミキサー制御がうまく動作しているため。\r
-               public COptionInteger nPoliphonicSounds;\r
+               public COptionInteger nPolyphonicSounds;\r
                [DataMember]\r
                // #24820 2013.1.15 yyagi WASAPIのバッファサイズ 初期値は50(0で自動設定)\r
                public COptionInteger nWASAPIBufferSizeMs;\r
@@ -525,7 +525,7 @@ namespace DTXMania
                        nChipFadeoutTimeMs = new COptionInteger(2000);\r
                        rcViewerWindow = new Coordinates.CRect(100, 100, 1280, 720);\r
                        nMasterVolume = new COptionInteger(100);\r
-                       nPoliphonicSounds = new COptionInteger(4);\r
+                       nPolyphonicSounds = new COptionInteger(4);\r
 \r
                        // dgb\r
                        bEmphasizePlaySound = new STDGBSValue<COptionBool>();\r
@@ -684,7 +684,7 @@ namespace DTXMania
                        CResources cr = CDTXMania.Instance.Resources;\r
                        bFullScreen.Initialize( "strCfgSysFullScreen" );\r
                        bVSyncWait.Initialize( "strCfgSysVSync" );\r
-                       bStageFailed.Initialize( "strCfgSysStageFailed" );\r
+                       bStageFailed.Initialize( "strCfgSysStageFailed");\r
                        bFullAVI.Initialize( "strCfgSysFullAVI" );\r
                        bAVI.Initialize( "strCfgSysAVI" );\r
                        bBGA.Initialize( "strCfgSysBGA" );\r
@@ -764,9 +764,9 @@ namespace DTXMania
                        nShowLagType.Initialize( "strCfgSysShowLagType", typeof(EShowLagType));\r
 \r
                        // integer\r
-                       nSleepPerFrameMs.Initialize("", "");\r
-                       nSleepUnfocusMs.Initialize("", "");\r
-                       nBGAlpha.Initialize( "strCfgSysBGAAlpha", 0, 255);\r
+                       nSleepPerFrameMs.Initialize( "strCfgSysSleepPerFrame", -1, 33 );\r
+                       nSleepUnfocusMs.Initialize( "strCfgSysSleepUnfocus", 0, 33 );\r
+                       nBGAlpha.Initialize( "strCfgSysBGAAlpha", 0, 255 );\r
                        nPreSoundWeightMs.Initialize( "strCfgSysPreSoundWait", 0, 10001);\r
                        nPreImageWeightMs.Initialize( "strCfgSysPreImageWait", 0, 10001);\r
                        nFontSizeDotSongSelect.Initialize("", "", 5);\r
@@ -796,7 +796,7 @@ namespace DTXMania
                        nChipFadeoutTimeMs.Initialize("", "", 0);\r
 \r
                        nMasterVolume.Initialize( "strCfgSysMasterVolume", 0, 101);\r
-                       nPoliphonicSounds.Initialize("", "", 1, 11);\r
+                       nPolyphonicSounds.Initialize( "strCfgSysPolyphonicSounds", 1, 11 );\r
 \r
                        // dgb\r
                        for (EPart i = EPart.Drums; i <= EPart.Unknown; i++)\r
index 612eca4..d4441fb 100644 (file)
@@ -410,7 +410,7 @@ namespace DTXMania
                                                        if (CDTXMania.Instance.DTX.listWAV.ContainsKey(pChip.n整数値_内部番号))\r
                                                        {\r
                                                                CDTX.CWAV wc = CDTXMania.Instance.DTX.listWAV[pChip.n整数値_内部番号];\r
-                                                               for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPoliphonicSounds; i++)\r
+                                                               for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPolyphonicSounds; i++)\r
                                                                {\r
                                                                        if (wc.rSound[i] != null)\r
                                                                        {\r
@@ -3107,7 +3107,7 @@ namespace DTXMania
                                                CDTX.CWAV wc = CDTXMania.Instance.DTX.listWAV[pChip.n整数値_内部番号];\r
                                                //Debug.Write( "[AddMixer] BAR=" + pChip.n発声位置 / 384 + ", wav=" + Path.GetFileName( wc.strファイル名 ) + ", time=" + pChip.n発声時刻ms );\r
 \r
-                                               for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPoliphonicSounds; i++)\r
+                                               for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPolyphonicSounds; i++)\r
                                                {\r
                                                        if (wc.rSound[i] != null)\r
                                                        {\r
@@ -3134,7 +3134,7 @@ namespace DTXMania
                                        {\r
                                                CDTX.CWAV wc = CDTXMania.Instance.DTX.listWAV[pChip.n整数値_内部番号];\r
                                                //Debug.Write( "[DelMixer] BAR=" + pChip.n発声位置 / 384 +  ", wav=" + Path.GetFileName( wc.strファイル名 ) + ", time=" + pChip.n発声時刻ms );\r
-                                               for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPoliphonicSounds; i++)\r
+                                               for (int i = 0; i < CDTXMania.Instance.ConfigIni.nPolyphonicSounds; i++)\r
                                                {\r
                                                        if (wc.rSound[i] != null)\r
                                                        {\r
index cb8c1d2..a0d7b01 100644 (file)
Binary files a/実行時フォルダ(DTXCreator)/dll/FDK.dll and b/実行時フォルダ(DTXCreator)/dll/FDK.dll differ
index 84bf2a2..4166f44 100644 (file)
Binary files a/実行時フォルダ/DTXManiaGR.exe and b/実行時フォルダ/DTXManiaGR.exe differ
index 042d5bd..625217c 100644 (file)
Binary files a/実行時フォルダ/System/resources.csv and b/実行時フォルダ/System/resources.csv differ
index fd6be89..f8b5df3 100644 (file)
Binary files a/実行時フォルダ/System/resources.xlsx and b/実行時フォルダ/System/resources.xlsx differ
index cb8c1d2..a0d7b01 100644 (file)
Binary files a/実行時フォルダ/dll/FDK.dll and b/実行時フォルダ/dll/FDK.dll differ