OSDN Git Service

SlimDX から SharpDX へ機械的に移行。
[dtxmania/dtxmania.git] / FDK17プロジェクト / コード / 03.サウンド / CSoundDeviceDirectSound.cs
index 638d05d..201cb04 100644 (file)
@@ -4,8 +4,8 @@ using System.Text;
 using System.Diagnostics;\r
 using System.IO;\r
 using System.Threading;\r
-using SlimDX;\r
-using SlimDX.DirectSound;\r
+using SharpDX;\r
+using SharpDX.DirectSound;\r
 \r
 namespace FDK\r
 {\r
@@ -39,7 +39,7 @@ namespace FDK
                        {\r
                                if ( ctimer != null )\r
                                {\r
-                                       int n現在位置 = this.sd経過時間計測用サウンドバッファ.DirectSoundBuffer.CurrentPlayPosition;\r
+                                       this.sd経過時間計測用サウンドバッファ.DirectSoundBuffer.GetCurrentPosition( out int n現在位置, out _ );\r
                                        long n現在のシステム時刻ms = this.tmシステムタイマ.nシステム時刻ms;\r
 \r
 \r
@@ -134,7 +134,7 @@ namespace FDK
                        {\r
                                this.DirectSound.SetCooperativeLevel( hWnd, CooperativeLevel.Priority );\r
                        }\r
-                       catch( DirectSoundException )\r
+                       catch\r
                        {\r
                                this.DirectSound.SetCooperativeLevel( hWnd, CooperativeLevel.Normal );  // これでも失敗したら例外をそのまま発出。\r
                                priority = false;\r