-
Notifications
You must be signed in to change notification settings - Fork 24
Troubleshooting
Output underflow means that remoteAudio was not able to provide an entire sound sample to the DAC of the sound card. The data had to be padded with zeros (silence).
Input overflow means that remoteAudio was not able to read the entire sound sample from the sound card. The particular sample has been dropped.
If too many Outputunderflows or InputOverflows happen there are a few measure you can take:
Modern CPUs support variable frequency rates. They scale up when CPU power is needed and scale down to reduce power consumption. Since remoteAudio is working with extreme low latencies, a sudden reduction in CPU frequency might result in Output underflows or Input overflows.
On Linux this is managed by the CPU Governor. The easiest way to change the CPU governor profile is by using the cpufrequtils
service.
On most systems this should be installed by default. You can then edit the CPU performance characteristics in
$ sudo /etc/default/cpufrequtils
and increase either MIN_SPEED
or changing the GOVENOR
profile from interactive
to performance
. Another option might be to disable the CPU Governor completely.
After modifying the settings, you have to restart the service:
$ sudo systemctl restart cpufrequtils.service
Please be advised that this will result in a higher Power consumption. On embedded devices like the Raspberry Pi or similar, a passive heat sink would come in handy to ensure a reliable operation.
On Windows you could try to change the Power Settings Profile.
Another way to reduce Input Overflows and Output Underflows is to increase the Process Priority. This weblink shows your in detail how to change the priority of Linux Processes
When executing aplay -l
no sound card is shown. However sudo aplay -l
shows the audio devices.
In this case, your user has to be added to the group audio
.
$ sudo adduser <username> audio
Then close the session and log in again.