Quellcode durchsuchen

cleanup: comment unused struct / methods

Coder vor 8 Monaten
Ursprung
Commit
858d9297bd

+ 9 - 9
Bmp.Core/Playback/Outputs/NAudioASIO/Originals/ASIODriver.cs

@@ -214,15 +214,15 @@ public class AsioDriver
         HandleException(_asioDriverVTable.setClockSource(_asioComObject, reference), "setClockSources");
     }
 
-    /// <summary>
-    /// Gets the sample position.
-    /// </summary>
-    /// <param name="samplePos">The sample pos.</param>
-    /// <param name="timeStamp">The time stamp.</param>
-    public void GetSamplePosition(out long samplePos, ref Asio64Bit timeStamp)
-    {
-        HandleException(_asioDriverVTable.getSamplePosition(_asioComObject, out samplePos, ref timeStamp), "getSamplePosition");
-    }
+    ///// <summary>
+    ///// Gets the sample position.
+    ///// </summary>
+    ///// <param name="samplePos">The sample pos.</param>
+    ///// <param name="timeStamp">The time stamp.</param>
+    //public void GetSamplePosition(out long samplePos, ref Asio64Bit timeStamp)
+    //{
+    //    HandleException(_asioDriverVTable.getSamplePosition(_asioComObject, out samplePos, ref timeStamp), "getSamplePosition");
+    //}
 
     /// <summary>
     /// Gets the channel info.

+ 55 - 55
Bmp.Core/Playback/Outputs/NAudioASIO/Originals/ASIOStructures.cs

@@ -75,58 +75,58 @@ internal struct AsioBufferInfo
 // Time structures
 // -------------------------------------------------------------------------------
 
-[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Ansi)]
-internal struct AsioTimeCode
-{
-    public double speed;                  // speed relation (fraction of nominal speed)
-    // ASIOSamples     timeCodeSamples;        // time in samples
-    public Asio64Bit timeCodeSamples;        // time in samples
-    public AsioTimeCodeFlags flags;                  // some information flags (see below)
-    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
-    public string future;
-}
-
-[Flags]
-internal enum AsioTimeCodeFlags
-{
-    kTcValid = 1,
-    kTcRunning = 1 << 1,
-    kTcReverse = 1 << 2,
-    kTcOnspeed = 1 << 3,
-    kTcStill = 1 << 4,
-    kTcSpeedValid = 1 << 8
-};
-
-[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Ansi)]
-internal struct AsioTimeInfo
-{
-    public double speed;                  // absolute speed (1. = nominal)
-    public Asio64Bit systemTime;             // system time related to samplePosition, in nanoseconds
-    public Asio64Bit samplePosition;
-    public double sampleRate;             // current rate
-    public AsioTimeInfoFlags flags;                    // (see below)
-    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)]
-    public string reserved;
-}
-
-[Flags]
-internal enum AsioTimeInfoFlags
-{
-    kSystemTimeValid = 1,            // must always be valid
-    kSamplePositionValid = 1 << 1,       // must always be valid
-    kSampleRateValid = 1 << 2,
-    kSpeedValid = 1 << 3,
-    kSampleRateChanged = 1 << 4,
-    kClockSourceChanged = 1 << 5
-}
-
-[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Ansi)]
-internal struct AsioTime
-{                         // both input/output
-    public int reserved1;
-    public int reserved2;
-    public int reserved3;
-    public int reserved4;
-    public AsioTimeInfo timeInfo;       // required
-    public AsioTimeCode timeCode;       // optional, evaluated if (timeCode.flags & kTcValid)
-}
+//[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Ansi)]
+//internal struct AsioTimeCode
+//{
+//    public double speed;                  // speed relation (fraction of nominal speed)
+//    // ASIOSamples     timeCodeSamples;        // time in samples
+//    public Asio64Bit timeCodeSamples;        // time in samples
+//    public AsioTimeCodeFlags flags;                  // some information flags (see below)
+//    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
+//    public string future;
+//}
+
+//[Flags]
+//internal enum AsioTimeCodeFlags
+//{
+//    kTcValid = 1,
+//    kTcRunning = 1 << 1,
+//    kTcReverse = 1 << 2,
+//    kTcOnspeed = 1 << 3,
+//    kTcStill = 1 << 4,
+//    kTcSpeedValid = 1 << 8
+//};
+
+//[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Ansi)]
+//internal struct AsioTimeInfo
+//{
+//    public double speed;                  // absolute speed (1. = nominal)
+//    public Asio64Bit systemTime;             // system time related to samplePosition, in nanoseconds
+//    public Asio64Bit samplePosition;
+//    public double sampleRate;             // current rate
+//    public AsioTimeInfoFlags flags;                    // (see below)
+//    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)]
+//    public string reserved;
+//}
+
+//[Flags]
+//internal enum AsioTimeInfoFlags
+//{
+//    kSystemTimeValid = 1,            // must always be valid
+//    kSamplePositionValid = 1 << 1,       // must always be valid
+//    kSampleRateValid = 1 << 2,
+//    kSpeedValid = 1 << 3,
+//    kSampleRateChanged = 1 << 4,
+//    kClockSourceChanged = 1 << 5
+//}
+
+//[StructLayout(LayoutKind.Sequential, Pack = 4, CharSet = CharSet.Ansi)]
+//internal struct AsioTime
+//{                         // both input/output
+//    public int reserved1;
+//    public int reserved2;
+//    public int reserved3;
+//    public int reserved4;
+//    public AsioTimeInfo timeInfo;       // required
+//    public AsioTimeCode timeCode;       // optional, evaluated if (timeCode.flags & kTcValid)
+//}