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
{\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
{\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