Audio and MIDI library for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

  1. using System.Runtime.InteropServices;
  2. namespace NAudio.Wave.Asio
  3. {
  4. /// <summary>
  5. /// ASIO 64 bit value
  6. /// Unfortunately the ASIO API was implemented it before compiler supported consistently 64 bit
  7. /// integer types. By using the structure the data layout on a little-endian system like the
  8. /// Intel x86 architecture will result in a "non native" storage of the 64 bit data. The most
  9. /// significant 32 bit are stored first in memory, the least significant bits are stored in the
  10. /// higher memory space. However each 32 bit is stored in the native little-endian fashion
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential, Pack = 4)]
  13. public struct Asio64Bit
  14. {
  15. /// <summary>
  16. /// most significant bits (Bits 32..63)
  17. /// </summary>
  18. public uint hi;
  19. /// <summary>
  20. /// least significant bits (Bits 0..31)
  21. /// </summary>
  22. public uint lo;
  23. // TODO: IMPLEMENT AN EASY WAY TO CONVERT THIS TO double AND long
  24. };
  25. }