Mooneer’s FreeDV Update – April 2025

This month consisted of continued incremental improvements to the FreeDV GUI application. Building on top of the work described last month, I added logic to request real-time priority from the operating system. This allowed audio latencies to be reduced even further on macOS and Windows. Additionally, the prerequisite work to make this happen (such as ensuring that memory allocations and system calls happen outside of the real-time context as much as possible) also improved the test pass rate in our CI environment, especially for macOS.

Unfortunately, this logic had to temporarily be disabled on Linux for several reasons. One major reason is that Linux force-kills processes that use “too much” CPU time while running in real-time. This means that unless we can guarantee that the same amount of time is used per audio processing cycle, there’s always going to be a user that runs into problems with FreeDV dying. Additionally, we cannot currently guarantee that the same amount of time will be used due to the continued use of Python to implement some parts of RADE; this is due to Python not being designed to run real-time (i.e. due to dynamic memory allocation). This is more acceptable on macOS and Windows as neither of those two operating systems punish processes by killing them. Hopefully once RADEV2 is released and we have a full C implementation of RADE, this can be revisited.

On top of improvements in the audio chain, I also implemented the ability to render emojis in color on Windows. This required a rewrite of large parts of the internal FreeDV Reporter client GUI as the wxWidgets control that was in use before now forced use of the GDI+ renderer (color fonts/emojis are only supported when drawing using Direct2D). As with any large refactoring/rewrite, this introduced bugs that had to be worked through, including crashes that only seemed to happen on certain platforms. Many of these platform-specific bugs are due to wxWidgets using native controls when possible, which come with their own quirks.

Speaking of bugs, during the color emoji effort, several bugs were discovered in the FreeDV Reporter server code that caused incorrect reporting to occur, especially during the initial connection process and when hiding/unhiding users. These contributed to many of the bugs and regressions that were discovered and by fixing them, others that wish to implement third-party clients should hopefully benefit.

Besides the above, I plan on preparing for Dayton Hamvention in a few weeks, where FreeDV will have a booth (#1909) and I’ll be giving several talks (currently in the ARDC and the Digital Modes forums). If you’re going to be there, come and visit!

More information can be found in the commit history below:

(Note that all commit logs above were generated with the following command line:)

git log --author="member@email" --after "Month 1, 2025" --before "Month 31, 2025 23:59:59" --all