When using Portaudio (via the sounddevice Python module which calls Portaudio) with a Raspberry Pi 4, there is a 25-30 seconds delay before the callback function even starts.
Here is a short-example, the AudioCallback function starts only after 25-30 seconds.
I have found reports of this with other wrapper libraries around Portaudio than sounddevice, so this is not linked to sounddevice itself, but more probably RPi + Portaudio.
When using Portaudio (via the
sounddevice
Python module which calls Portaudio) with a Raspberry Pi 4, there is a 25-30 seconds delay before the callback function even starts.Here is a short-example, the
AudioCallback
function starts only after 25-30 seconds.It has already been confirmed by a few different people here: https://github.com/spatialaudio/python-sounddevice/issues/327
I have found reports of this with other wrapper libraries around Portaudio than
sounddevice
, so this is not linked tosounddevice
itself, but more probably RPi + Portaudio.Do you have any idea what could be the cause?
Other interesting read: https://listserv.cuit.columbia.edu/scripts/wa.exe?A2=2103B&L=PORTAUDIO&D=0&S=b&P=292768