14 namespace Audinate {
namespace DAL {
16 #define AUDINATE_DAL_INTERFACE_NAME_LENGTH 256
21 typedef UINT16 Uint16;
22 typedef UINT32 Uint32;
23 typedef UINT64 Uint64;
27 typedef std::wstring InterfaceName;
32 typedef uint8_t Uint8;
33 typedef uint16_t Uint16;
34 typedef uint32_t Uint32;
35 typedef uint64_t Uint64;
37 typedef int32_t Int32;
39 typedef std::string InterfaceName;
44 typedef unsigned int InterfaceIndex;
45 typedef unsigned int Error;
47 typedef Uint32 Samplerate;
64 bool operator==(
const Version & o)
const {
return mMajor == o.mMajor &&
mMinor == o.mMinor &&
mBugfix == o.mBugfix; }
65 bool operator!=(
const Version & o)
const {
return ! operator==(o); }
66 Version& operator=(
const Version & o) {
mMajor = o.mMajor;
mMinor = o.mMinor;
mBugfix = o.mBugfix;
return *
this; }
83 bool operator==(
const DALVersion & o)
const {
return mMajor == o.mMajor &&
mMinor == o.mMinor &&
mBugfix == o.mBugfix &&
mBuildNumber == o.mBuildNumber; }
84 bool operator!=(
const DALVersion & o)
const {
return !operator==(o); }
88 #define AUDINATE_DAL_ID64_LENGTH 8
93 Uint8 mData[AUDINATE_DAL_ID64_LENGTH];
95 Id64(Uint8 b0, Uint8 b1, Uint8 b2, Uint8 b3, Uint8 b4, Uint8 b5, Uint8 b6, Uint8 b7): mData() { mData[0] = b0; mData[1] = b1; mData[2] = b2; mData[3] = b3; mData[4] = b4; mData[5] = b5; mData[6] = b6; mData[7] = b7; }
99 bool operator==(
const Id64 & o)
const {
return !memcmp(mData, o.mData, AUDINATE_DAL_ID64_LENGTH); }
100 bool operator!=(
const Id64 & o)
const {
return ! operator==(o); }
101 Id64& operator=(
const Id64 & o) { memcpy(mData, o.mData, AUDINATE_DAL_ID64_LENGTH);
return *
this; }