1

I'm attempting to build a multi-effect guitar pedal out of a Pi-4B (8GB), and am running into problems getting jackd running with reasonably low latency. It runs fine as long as the period is set to 512 or higher, but at any lower values, I get something like the following when jackd tries to talk to ALSA:

audio_reservation_init
Acquire audio card Audio2
Acquire audio card Audio0
creating alsa driver ... hw:b1,0|hw:Device,0|128|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: cannot set period size to 128 frames for playback
ALSA: cannot configure playback channel

When running the same settings on a laptop, this works fine, so I'm assuming the issues lies in hardware, but I've no clue which hardware. My general question is, naturally, "Why is this failing and what do I need to do to get jackd running with < 10ms total latency?", but more specifically:

Is the problem with the Pi itself, or with the audio interface, and if the latter, what properties must an audio interface have such that it will permit periods of 128 (or preferably lower)?

Currently, I'm using an ATNY USB interface cable (something like this one, although possibly a different model).

1 Answer 1

1

The problem was with the built-in audio interface. Running both input and output through a Focusrite Scarlett Solo 3rd Gen was sufficient to get it running at a sample rate of 192000 and a buffer of 64 (or lower, but at the cost of the occasional XRUN).

The ATNY doesn't seem to have been at fault; I was able to start it with those settings using the ATNY as input and the Scarlett as output.

I still don't have an answer for what properties the audio interface must have to permit these settings; the Scarlett is sufficient, but possibly not necessary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.