|
@@ -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)
|
|
|
+//}
|