My Python program to record sound has problems with overruns.
I am using threads to do the reording and do FFT’s simultaneously. It works most of the time but there are occaisional gaps and read errors.
I am using pyalsaaudio to connect to ALSA.
I think I need a bigger input buffer to avoid the overruns, but I can’t seem to do this in pyalsaaudio. There is a method to do this - .set periodsize, but it doesn’t do anything.
Is there a way in the ALSA.config files to set a default buffer size?