OSDN Git Service

SoundTimer を廃止し、デバイス位置取得機能を Device に組み込む。
[strokestylet/CsWin10Desktop3.git] / FDK24 / メディア / サウンド / WASAPI / SoundTimer.cs
diff --git a/FDK24/メディア/サウンド/WASAPI/SoundTimer.cs b/FDK24/メディア/サウンド/WASAPI/SoundTimer.cs
deleted file mode 100644 (file)
index da29c5c..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using CSCore;
-
-namespace FDK.メディア.サウンド.WASAPI
-{
-       /// <summary>
-       ///             WASAPIデバイス(のIAudioClock)をソースとするタイマー。
-       /// </summary>
-       /// <remarks>
-       ///             WASAPIデバイスと厳密に同期をとる場合には、QPCTimer ではなく、このクラスを使用する。
-       /// </remarks>
-       public class SoundTimer
-       {
-               /// <returns>エラー時は double.NaN を返す。</returns>
-               public double 現在のデバイス位置secを取得する( long position, long qpcPosition, long frequency )
-               {
-                       lock( this._スレッド間同期 )
-                       {
-                               long デバイス周波数 = frequency;
-                               long デバイス位置 = position;
-                               //long デバイス位置取得時のパフォーマンスカウンタを100ns単位に変換した時間 = qpcPosition;
-                               //long QPC周波数 = FDK.カウンタ.QPCTimer.周波数;
-
-                               if( 0.0 >= デバイス周波数 )
-                                       return double.NaN;
-
-                               return (double) デバイス位置 / デバイス周波数;
-                       }
-               }
-
-               private readonly object _スレッド間同期 = new object();
-       }
-}