OSDN Git Service

#37189 DirectSoundモード時にサウンド読み込みが遅かった問題を修正。
[dtxmania/dtxmania.git] / DTXMania / コード / スコア、曲 / CDTX.cs
index 21c2527..836c7ad 100644 (file)
@@ -658,19 +658,19 @@ namespace DTXMania
                                        #endregion
 
                                        // 残りはClone等で登録する
-                                       //if ( bIsDirectSound ) // DShowでの再生の場合はCloneする
-                                       //{
-                                       //    for ( int i = 1; i < nPoly; i++ )
-                                       //    {
-                                       //        cwav.rSound[ i ] = (CSound) cwav.rSound[ 0 ].Clone(); // #24007 2011.9.5 yyagi add: to accelerate loading chip sounds
-                                       //        // CDTXMania.Instance.app.Sound管理.tサウンドを登録する( cwav.rSound[ j ] );
-                                       //    }
-                                       //    for ( int i = nPoly; i < nPolyphonicSounds; i++ )
-                                       //    {
-                                       //        cwav.rSound[ i ] = null;
-                                       //    }
-                                       //}
-                                       //else                                                                                                                  // WASAPI/ASIO時は通常通り登録
+                                       if (bIsDirectSound)     // DirectSoundでの再生の場合はCloneする
+                                       {
+                                               for (int i = 1; i < nPoly; i++)
+                                               {
+                                                       cwav.rSound[i] = (CSound)cwav.rSound[0].Clone();    // #24007 2011.9.5 yyagi add: to accelerate loading chip sounds
+                                                                                                                                                               // CDTXMania.Instance.app.Sound管理.tサウンドを登録する( cwav.rSound[ j ] );
+                                               }
+                                               for (int i = nPoly; i < nPolyphonicSounds; i++)
+                                               {
+                                                       cwav.rSound[i] = null;
+                                               }
+                                       }
+                                       else                                                            // WASAPI/ASIO時は通常通り登録
                                        {
                                                for (int i = 1; i < nPoly; i++)
                                                {