Compare commits

..
8 Commits
Author SHA1 Message Date
Mark Qvist e5a960b2df Updated OPUS audio modes 2024-06-04 18:31:18 +02:00
Mark Qvist a35e522e75 Added custom audio mode to spec 2024-06-02 09:25:33 +02:00
Mark Qvist a810be316f Added audio modes 2024-06-02 09:19:47 +02:00
Mark Qvist 741b66aab2 Updated version 2024-05-05 20:11:30 +02:00
Mark Qvist d767d40c5f Updated dependency version 2024-05-05 20:09:05 +02:00
Mark Qvist 2b3fa796a1 Updated packet proof logic 2024-03-26 14:55:59 +01:00
Mark Qvist f6cc9fd1cf Updated version 2024-03-23 19:53:05 +01:00
Mark Qvist 4b13d7188c Send packet proof before delivery processing 2024-03-22 21:11:32 +01:00
4 changed files with 35 additions and 5 deletions

No files matched your search

+30 -1
View File
@@ -14,4 +14,33 @@ FIELD_AUDIO = 0x07
FIELD_THREAD = 0x08
FIELD_COMMANDS = 0x09
FIELD_RESULTS = 0x0A
FIELD_GROUP = 0x0B
FIELD_GROUP = 0x0B
# Audio modes for the data structure in FIELD_AUDIO
# Codec2 Audio Modes
AM_CODEC2_450PWB = 0x01
AM_CODEC2_450 = 0x02
AM_CODEC2_700C = 0x03
AM_CODEC2_1200 = 0x04
AM_CODEC2_1300 = 0x05
AM_CODEC2_1400 = 0x06
AM_CODEC2_1600 = 0x07
AM_CODEC2_2400 = 0x08
AM_CODEC2_3200 = 0x09
# Opus Audio Modes
AM_OPUS_OGG = 0x10
AM_OPUS_LBW = 0x11
AM_OPUS_MBW = 0x12
AM_OPUS_PTT = 0x13
AM_OPUS_RT_HDX = 0x14
AM_OPUS_RT_FDX = 0x15
AM_OPUS_STANDARD = 0x16
AM_OPUS_HQ = 0x17
AM_OPUS_BROADCAST = 0x18
AM_OPUS_LOSSLESS = 0x19
# Custom, unspecified audio mode, the
# client must determined it itself
AM_CUSTOM = 0xFF
+3 -2
View File
@@ -980,6 +980,7 @@ class LXMRouter:
return False
def delivery_packet(self, data, packet):
packet.prove()
try:
if packet.destination_type != RNS.Destination.LINK:
lxmf_data = b""
@@ -997,8 +998,8 @@ class LXMRouter:
RNS.log("Error while retrieving physical link stats for LXMF delivery packet: "+str(e), RNS.LOG_ERROR)
phy_stats = {"rssi": packet.rssi, "snr": packet.snr, "q": packet.q}
if self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats):
packet.prove()
self.lxmf_delivery(lxmf_data, packet.destination_type, phy_stats=phy_stats)
except Exception as e:
RNS.log("Exception occurred while parsing incoming LXMF data.", RNS.LOG_ERROR)
+1 -1
View File
@@ -1 +1 @@
__version__ = "0.4.2"
__version__ = "0.4.4"
+1 -1
View File
@@ -25,6 +25,6 @@ setuptools.setup(
'lxmd=LXMF.Utilities.lxmd:main',
]
},
install_requires=['rns>=0.7.3'],
install_requires=['rns>=0.7.4'],
python_requires='>=3.7',
)