Opens in a new tab

AES E-Library

← Back to search

Journal Article

A Comparison of Real-Time Linux-Based Architectures for Embedded Musical Applications

Authors: Vignati, Luca; Zambon, Stefano; Turchet, Luca

Journal of the Audio Engineering Society · Volume 70 · Issue 1/2 · pp. 83–93 · January 2022

Abstract

The Internet of Things (IoT) is fostering advancements in the embedded systems world, widening the range of available single-board computers and lowering their price. The Internet of Musical Things (IoMusT), the IoT musical counterpart, is thriving as well with more and more examples of embedded devices useful to build connected musical interfaces. For this purpose, real-time architectures based on the Linux operating system are increasingly used. In this paper, we compare two radically different approaches to real-time Linux audio: one system is based on the PREEMPT RT patch and the ALSA framework and the other on the Xenomai patch and the Elk Audio OS. Our study aims at providing audio developers working on IoMusT devices and applications with a clear quantitative picture of how these two systems compare. Our results reveal that Xenomai provides lower audio round-trip latency, lower scheduling latency, and manages to exploit more CPU performance at a given latency setting while guaranteeing perfect audio quality. Nevertheless, PREEMPT RT still delivers good performance, and it is widely supported resulting in a more accessible alternative. All the tests have been carried out on the Raspberry Pi 4B single-board computer combined with the HiFiBerry expansion HAT.

Details

Publication
Journal of the Audio Engineering Society
Volume
70
Issue
1/2
Pages
83–93
Publication date
January 6, 2022
Affiliation
Department of Information Engineering and Computer Science, University of Trento, Trento, Italy; Modern Ancient Instruments Networked dba Elk, Stockholm (See document for exact affiliation information.)
Type
Journal Article