OSDN Git Service

#35280 DSoundモード時に、DTXファイルから指定しているmp3ファイルが見つからないとフリーズする問題を修正。
authoryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Tue, 23 Jun 2015 14:51:38 +0000 (14:51 +0000)
committeryyagi <yyagi@16f42ceb-6dc6-49c8-ba94-f2d53467949d>
Tue, 23 Jun 2015 14:51:38 +0000 (14:51 +0000)
#xxxxx WailingChipと、HHチップの描画を若干修正。(HHチップの画像を更新しているので注意)

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

DTXManiaプロジェクト/DTXManiaプロジェクト.csproj
DTXManiaプロジェクト/コード/ステージ/07.演奏/CStage演奏画面共通.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/CWailingChip.cs
DTXManiaプロジェクト/コード/ステージ/07.演奏/ドラム画面/CStage演奏ドラム画面.cs
DTXManiaプロジェクト/作成資料/ScreenPlayDrums chips.psd
FDK17プロジェクト/コード/03.サウンド/CSound.cs
実行時フォルダ(DTXCreator)/dll/FDK.dll
実行時フォルダ/DTXManiaGR.exe
実行時フォルダ/dll/FDK.dll
実行時フォルダ/dll/SlimDXc_net20x86_Jun2010.dll

index 5e4ff38..d8b29eb 100644 (file)
@@ -96,7 +96,9 @@
     <None Include="app.config">\r
       <SubType>Designer</SubType>\r
     </None>\r
-    <None Include="DTXManiaGR.exe.x86.manifest" />\r
+    <None Include="DTXManiaGR.exe.x86.manifest">\r
+      <SubType>Designer</SubType>\r
+    </None>\r
     <None Include="Properties\Settings.settings">\r
       <Generator>SettingsSingleFileGenerator</Generator>\r
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>\r
index f5b3fc5..16c68e9 100644 (file)
@@ -2590,7 +2590,30 @@ namespace DTXMania
                protected abstract void t進行描画・チップ・ドラムス( CConfigIni configIni, ref CDTX dTX, ref CDTX.CChip pChip );\r
                //protected abstract void t進行描画・チップ・ギター( CConfigIni configIni, ref CDTX dTX, ref CDTX.CChip pChip );\r
                protected abstract void t進行描画・チップ・ギターベース( CConfigIni configIni, ref CDTX dTX, ref CDTX.CChip pChip, E楽器パート inst );\r
-\r
+               /// <summary>\r
+               /// ギター・ベースのチップ表示\r
+               /// </summary>\r
+               /// <param name="configIni"></param>\r
+               /// <param name="dTX"></param>\r
+               /// <param name="pChip">描画するチップ</param>\r
+               /// <param name="inst">楽器種別</param>\r
+               /// <param name="barYNormal">Normal時判定ライン表示Y座標</param>\r
+               /// <param name="barYReverse">Reverse時判定ライン表示Y座標</param>\r
+               /// <param name="showRangeY0">チップ表示Y座標範囲(最小値)</param>\r
+               /// <param name="showRangeY1">チップ表示Y座標範囲(最大値)</param>\r
+               /// <param name="openXg">オープンチップの表示X座標(ギター用)</param>\r
+               /// <param name="openXb">オープンチップの表示X座標(ベース用)</param>\r
+               /// <param name="rectOpenOffsetX">テクスチャ内のオープンチップregionのx座標</param>\r
+               /// <param name="rectOpenOffsetY">テクスチャ内のオープンチップregionのy座標</param>\r
+               /// <param name="openChipWidth">テクスチャ内のオープンチップregionのwidth</param>\r
+               /// <param name="chipHeight">テクスチャ内のチップのheight</param>\r
+               /// <param name="chipWidth">テクスチャ内のチップのwidth</param>\r
+               /// <param name="guitarNormalX">ギターチップ描画のx座標(Normal)</param>\r
+               /// <param name="guitarLeftyX">ギターチップ描画のx座標(Lefty)</param>\r
+               /// <param name="bassNormalX">ベースチップ描画のx座標(Normal)</param>\r
+               /// <param name="bassLeftyX">ベースチップ描画のx座標(Lefty)</param>\r
+               /// <param name="drawDeltaX">描画のX座標間隔(R,G,B...)</param>\r
+               /// <param name="chipTexDeltaX">テクスチャののX座標間隔(R,G,B...)</param>\r
                protected void t進行描画・チップ・ギターベース( CConfigIni configIni, ref CDTX dTX, ref CDTX.CChip pChip, E楽器パート inst,\r
                        int barYNormal, int barYReverse,\r
                        int showRangeY0, int showRangeY1, int openXg, int openXb,\r
index bf5d746..db4b800 100644 (file)
@@ -18,7 +18,7 @@ namespace DTXMania
                protected int[] y_base;\r
                protected int offset;\r
                protected const int     WailingWidth  = (int) ( 20 * Scale.X );                 // ウェイリングチップ画像の幅: 4種全て同じ値\r
-               protected const int WailingHeight = (int) ( 50 * Scale.Y );                     // ウェイリングチップ画像の高さ: 4種全て同じ値\r
+               protected const int WailingHeight = (int) 120;  //( 50 * Scale.Y );                     // ウェイリングチップ画像の高さ: 4種全て同じ値\r
                protected int baseTextureOffsetX, baseTextureOffsetY;\r
 \r
                protected int drawX;\r
index 0d79e88..7edaa88 100644 (file)
@@ -1910,15 +1910,24 @@ namespace DTXMania
                                        int num9 = this.ctチップ模様アニメ.Drums.n現在の値;\r
                                        switch ( pChip.nチャンネル番号 )\r
                                        {\r
-                                               case 0x11:\r
+                                               case 0x11:      // HH\r
                                                        x += (int) ( 0x10 * Scale.X ) - ( (int) ( ( 32.0 * pChip.dbチップサイズ倍率 * Scale.X ) / 2.0 ) );\r
                                                        if ( this.txチップ != null )\r
                                                        {\r
-                                                               this.txチップ.t2D描画( CDTXMania.app.Device, x, y - 4 * Scale.Y, new Rectangle( (int) ( 0x2c * Scale.X ), (int) ( num9 * 7 * Scale.Y ), (int) ( 0x20 * Scale.X ), (int) ( 8 * Scale.Y ) ) );\r
+                                                               this.txチップ.t2D描画( CDTXMania.app.Device,\r
+                                                                       x,\r
+                                                                       y - 9,\r
+                                                                       new Rectangle(\r
+                                                                               (int) ( 44 * Scale.X ),\r
+                                                                               (int) ( num9 * (18-2) ),\r
+                                                                               (int) ( 32 * Scale.X ),\r
+                                                                               (int) ( 18 )\r
+                                                                       )\r
+                                                               );\r
                                                        }\r
                                                        break;\r
 \r
-                                               case 0x12:\r
+                                               case 0x12:      // SD\r
                                                        x += (int) ( 0x10 * Scale.X ) - ( (int) ( ( 32.0 * pChip.dbチップサイズ倍率 * Scale.X ) / 2.0 ) );\r
                                                        if ( this.txチップ != null )\r
                                                        {\r
@@ -1926,7 +1935,7 @@ namespace DTXMania
                                                        }\r
                                                        break;\r
 \r
-                                               case 0x13:\r
+                                               case 0x13:      // BD\r
                                                        x += (int) ( 0x16 * Scale.X ) - ( (int) ( ( 44.0 * pChip.dbチップサイズ倍率 * Scale.X ) / 2.0 ) );\r
                                                        if ( this.txチップ != null )\r
                                                        {\r
index a96a855..ecdc872 100644 (file)
Binary files a/DTXManiaプロジェクト/作成資料/ScreenPlayDrums chips.psd and b/DTXManiaプロジェクト/作成資料/ScreenPlayDrums chips.psd differ
index be0b896..f455658 100644 (file)
@@ -758,7 +758,6 @@ namespace FDK
                {\r
                        this.e作成方法 = E作成方法.ファイルから;\r
                        this.strファイル名 = strファイル名;\r
-\r
                        if ( String.Compare( Path.GetExtension( strファイル名 ), ".xa", true ) == 0 ||\r
                                 String.Compare( Path.GetExtension( strファイル名 ), ".mp3", true ) == 0 ||\r
                                 String.Compare( Path.GetExtension( strファイル名 ), ".ogg", true ) == 0 ) // caselessで文字列比較\r
@@ -1769,6 +1768,10 @@ Debug.WriteLine("更に再生に失敗: " + Path.GetFileName(this.strファイ
                                throw new NotImplementedException();\r
                        }\r
 \r
+                       if ( !File.Exists( strファイル名 ) )\r
+                       {\r
+                               throw new Exception( string.Format( "ファイルが見つかりませんでした。({0})", strファイル名 ) );\r
+                       }\r
                        int nHandle = sounddecoder.Open( strファイル名 );\r
                        if ( nHandle < 0 )\r
                        {\r
index 99155af..ff6388f 100644 (file)
Binary files a/実行時フォルダ(DTXCreator)/dll/FDK.dll and b/実行時フォルダ(DTXCreator)/dll/FDK.dll differ
index 1a94ecc..3cafb83 100644 (file)
Binary files a/実行時フォルダ/DTXManiaGR.exe and b/実行時フォルダ/DTXManiaGR.exe differ
index e757335..ff6388f 100644 (file)
Binary files a/実行時フォルダ/dll/FDK.dll and b/実行時フォルダ/dll/FDK.dll differ
index 4146c70..37fd97a 100644 (file)
Binary files a/実行時フォルダ/dll/SlimDXc_net20x86_Jun2010.dll and b/実行時フォルダ/dll/SlimDXc_net20x86_Jun2010.dll differ