[Linux] Implement adaptive audio noice

This commit is contained in:
Tim Gromeyer
2025-03-26 14:42:31 +01:00
parent d004d12bb1
commit 55ba67190d
3 changed files with 65 additions and 0 deletions

View File

@@ -63,6 +63,17 @@ namespace AirPodsPackets
static const QByteArray DISCONNECT_REQUEST = QByteArray::fromHex("00020000");
}
// Adaptive Noise Packets
namespace AdaptiveNoise
{
const QByteArray HEADER = QByteArray::fromHex("0400040009002E");
inline QByteArray getPacket(int level)
{
return HEADER + static_cast<char>(level) + QByteArray::fromHex("000000");
}
}
// Parsing Headers
namespace Parse
{