mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 22:17:17 +03:00
finhsing CSpot integration
This commit is contained in:
@@ -9,18 +9,18 @@ ReflectType::ofEnum(/* mine id */ ReflectTypeID::EnumReflectTypeID, /* name */ "
|
||||
ReflectEnumValue("EnumReflectTypeKind", 4),
|
||||
ReflectEnumValue("VectorOfClassReflectField", 5),
|
||||
ReflectEnumValue("VectorOfClassReflectEnumValue", 6),
|
||||
ReflectEnumValue("Double", 7),
|
||||
ReflectEnumValue("Uint32", 8),
|
||||
ReflectEnumValue("Char", 9),
|
||||
ReflectEnumValue("UnsignedChar", 10),
|
||||
ReflectEnumValue("Float", 11),
|
||||
ReflectEnumValue("Bool", 12),
|
||||
ReflectEnumValue("String", 13),
|
||||
ReflectEnumValue("Int32", 14),
|
||||
ReflectEnumValue("Int64", 15),
|
||||
ReflectEnumValue("Int", 16),
|
||||
ReflectEnumValue("Uint8", 17),
|
||||
ReflectEnumValue("Uint64", 18),
|
||||
ReflectEnumValue("Int32", 7),
|
||||
ReflectEnumValue("Int64", 8),
|
||||
ReflectEnumValue("Uint32", 9),
|
||||
ReflectEnumValue("Uint8", 10),
|
||||
ReflectEnumValue("Int", 11),
|
||||
ReflectEnumValue("UnsignedChar", 12),
|
||||
ReflectEnumValue("Float", 13),
|
||||
ReflectEnumValue("String", 14),
|
||||
ReflectEnumValue("Uint64", 15),
|
||||
ReflectEnumValue("Char", 16),
|
||||
ReflectEnumValue("Double", 17),
|
||||
ReflectEnumValue("Bool", 18),
|
||||
ReflectEnumValue("VectorOfUint8", 19),
|
||||
ReflectEnumValue("EnumCpuFamily", 20),
|
||||
ReflectEnumValue("EnumOs", 21),
|
||||
@@ -174,18 +174,18 @@ ReflectType::ofEnum(/* mine id */ ReflectTypeID::EnumReflectTypeKind, /* name */
|
||||
|
||||
|
||||
,
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Double, /* name */ "double", /* size */ sizeof(double)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Uint32, /* name */ "uint32_t", /* size */ sizeof(uint32_t)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Char, /* name */ "char", /* size */ sizeof(char)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::UnsignedChar, /* name */ "unsigned char", /* size */ sizeof(unsigned char)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Float, /* name */ "float", /* size */ sizeof(float)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Bool, /* name */ "bool", /* size */ sizeof(bool)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::String, /* name */ "std::string", /* size */ sizeof(std::string)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Int32, /* name */ "int32_t", /* size */ sizeof(int32_t)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Int64, /* name */ "int64_t", /* size */ sizeof(int64_t)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Int, /* name */ "int", /* size */ sizeof(int)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Uint32, /* name */ "uint32_t", /* size */ sizeof(uint32_t)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Uint8, /* name */ "uint8_t", /* size */ sizeof(uint8_t)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Int, /* name */ "int", /* size */ sizeof(int)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::UnsignedChar, /* name */ "unsigned char", /* size */ sizeof(unsigned char)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Float, /* name */ "float", /* size */ sizeof(float)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::String, /* name */ "std::string", /* size */ sizeof(std::string)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Uint64, /* name */ "uint64_t", /* size */ sizeof(uint64_t)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Char, /* name */ "char", /* size */ sizeof(char)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Double, /* name */ "double", /* size */ sizeof(double)),
|
||||
ReflectType::ofPrimitive(/* type id */ ReflectTypeID::Bool, /* name */ "bool", /* size */ sizeof(bool)),
|
||||
|
||||
ReflectType::ofVector(
|
||||
/* mine typeId */ ReflectTypeID::VectorOfUint8,
|
||||
|
||||
@@ -11,18 +11,18 @@ ClassReflectType = 3,
|
||||
EnumReflectTypeKind = 4,
|
||||
VectorOfClassReflectField = 5,
|
||||
VectorOfClassReflectEnumValue = 6,
|
||||
Double = 7,
|
||||
Uint32 = 8,
|
||||
Char = 9,
|
||||
UnsignedChar = 10,
|
||||
Float = 11,
|
||||
Bool = 12,
|
||||
String = 13,
|
||||
Int32 = 14,
|
||||
Int64 = 15,
|
||||
Int = 16,
|
||||
Uint8 = 17,
|
||||
Uint64 = 18,
|
||||
Int32 = 7,
|
||||
Int64 = 8,
|
||||
Uint32 = 9,
|
||||
Uint8 = 10,
|
||||
Int = 11,
|
||||
UnsignedChar = 12,
|
||||
Float = 13,
|
||||
String = 14,
|
||||
Uint64 = 15,
|
||||
Char = 16,
|
||||
Double = 17,
|
||||
Bool = 18,
|
||||
VectorOfUint8 = 19,
|
||||
EnumCpuFamily = 20,
|
||||
EnumOs = 21,
|
||||
|
||||
@@ -113,14 +113,20 @@ class Frame;
|
||||
if constexpr(std::is_same<T, std::vector<ReflectEnumValue>>::value) {
|
||||
return ReflectTypeID::VectorOfClassReflectEnumValue == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, double>::value) {
|
||||
return ReflectTypeID::Double == this->typeID;
|
||||
if constexpr(std::is_same<T, int32_t>::value) {
|
||||
return ReflectTypeID::Int32 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int64_t>::value) {
|
||||
return ReflectTypeID::Int64 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, uint32_t>::value) {
|
||||
return ReflectTypeID::Uint32 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, char>::value) {
|
||||
return ReflectTypeID::Char == this->typeID;
|
||||
if constexpr(std::is_same<T, uint8_t>::value) {
|
||||
return ReflectTypeID::Uint8 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int>::value) {
|
||||
return ReflectTypeID::Int == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, unsigned char>::value) {
|
||||
return ReflectTypeID::UnsignedChar == this->typeID;
|
||||
@@ -128,27 +134,21 @@ class Frame;
|
||||
if constexpr(std::is_same<T, float>::value) {
|
||||
return ReflectTypeID::Float == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, bool>::value) {
|
||||
return ReflectTypeID::Bool == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, std::string>::value) {
|
||||
return ReflectTypeID::String == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int32_t>::value) {
|
||||
return ReflectTypeID::Int32 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int64_t>::value) {
|
||||
return ReflectTypeID::Int64 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int>::value) {
|
||||
return ReflectTypeID::Int == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, uint8_t>::value) {
|
||||
return ReflectTypeID::Uint8 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, uint64_t>::value) {
|
||||
return ReflectTypeID::Uint64 == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, char>::value) {
|
||||
return ReflectTypeID::Char == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, double>::value) {
|
||||
return ReflectTypeID::Double == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, bool>::value) {
|
||||
return ReflectTypeID::Bool == this->typeID;
|
||||
} else
|
||||
if constexpr(std::is_same<T, std::vector<uint8_t>>::value) {
|
||||
return ReflectTypeID::VectorOfUint8 == this->typeID;
|
||||
} else
|
||||
@@ -296,14 +296,20 @@ class Frame;
|
||||
if constexpr(std::is_same<T, std::vector<ReflectEnumValue>>::value) {
|
||||
typeID = ReflectTypeID::VectorOfClassReflectEnumValue;
|
||||
} else
|
||||
if constexpr(std::is_same<T, double>::value) {
|
||||
typeID = ReflectTypeID::Double;
|
||||
if constexpr(std::is_same<T, int32_t>::value) {
|
||||
typeID = ReflectTypeID::Int32;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int64_t>::value) {
|
||||
typeID = ReflectTypeID::Int64;
|
||||
} else
|
||||
if constexpr(std::is_same<T, uint32_t>::value) {
|
||||
typeID = ReflectTypeID::Uint32;
|
||||
} else
|
||||
if constexpr(std::is_same<T, char>::value) {
|
||||
typeID = ReflectTypeID::Char;
|
||||
if constexpr(std::is_same<T, uint8_t>::value) {
|
||||
typeID = ReflectTypeID::Uint8;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int>::value) {
|
||||
typeID = ReflectTypeID::Int;
|
||||
} else
|
||||
if constexpr(std::is_same<T, unsigned char>::value) {
|
||||
typeID = ReflectTypeID::UnsignedChar;
|
||||
@@ -311,27 +317,21 @@ class Frame;
|
||||
if constexpr(std::is_same<T, float>::value) {
|
||||
typeID = ReflectTypeID::Float;
|
||||
} else
|
||||
if constexpr(std::is_same<T, bool>::value) {
|
||||
typeID = ReflectTypeID::Bool;
|
||||
} else
|
||||
if constexpr(std::is_same<T, std::string>::value) {
|
||||
typeID = ReflectTypeID::String;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int32_t>::value) {
|
||||
typeID = ReflectTypeID::Int32;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int64_t>::value) {
|
||||
typeID = ReflectTypeID::Int64;
|
||||
} else
|
||||
if constexpr(std::is_same<T, int>::value) {
|
||||
typeID = ReflectTypeID::Int;
|
||||
} else
|
||||
if constexpr(std::is_same<T, uint8_t>::value) {
|
||||
typeID = ReflectTypeID::Uint8;
|
||||
} else
|
||||
if constexpr(std::is_same<T, uint64_t>::value) {
|
||||
typeID = ReflectTypeID::Uint64;
|
||||
} else
|
||||
if constexpr(std::is_same<T, char>::value) {
|
||||
typeID = ReflectTypeID::Char;
|
||||
} else
|
||||
if constexpr(std::is_same<T, double>::value) {
|
||||
typeID = ReflectTypeID::Double;
|
||||
} else
|
||||
if constexpr(std::is_same<T, bool>::value) {
|
||||
typeID = ReflectTypeID::Bool;
|
||||
} else
|
||||
if constexpr(std::is_same<T, std::vector<uint8_t>>::value) {
|
||||
typeID = ReflectTypeID::VectorOfUint8;
|
||||
} else
|
||||
@@ -473,18 +473,18 @@ class Frame;
|
||||
ReflectTypeKind *u_EnumReflectTypeKind;
|
||||
std::vector<ReflectField> *u_VectorOfClassReflectField;
|
||||
std::vector<ReflectEnumValue> *u_VectorOfClassReflectEnumValue;
|
||||
double *u_Double;
|
||||
uint32_t *u_Uint32;
|
||||
char *u_Char;
|
||||
unsigned char *u_UnsignedChar;
|
||||
float *u_Float;
|
||||
bool *u_Bool;
|
||||
std::string *u_String;
|
||||
int32_t *u_Int32;
|
||||
int64_t *u_Int64;
|
||||
int *u_Int;
|
||||
uint32_t *u_Uint32;
|
||||
uint8_t *u_Uint8;
|
||||
int *u_Int;
|
||||
unsigned char *u_UnsignedChar;
|
||||
float *u_Float;
|
||||
std::string *u_String;
|
||||
uint64_t *u_Uint64;
|
||||
char *u_Char;
|
||||
double *u_Double;
|
||||
bool *u_Bool;
|
||||
std::vector<uint8_t> *u_VectorOfUint8;
|
||||
CpuFamily *u_EnumCpuFamily;
|
||||
Os *u_EnumOs;
|
||||
|
||||
Reference in New Issue
Block a user