-
Notifications
You must be signed in to change notification settings - Fork 469
Open
Description
On ARM SBC (allwinner-h3 based platform, armv7l so 32 bit) I get err: BackendSpecificError { description: "sample rate could not be set: Invalid argument" } when trying to run basically example code from docs. Kernel 5.4, distro is just armbian/debian buster.
The sound is playing fine (tested from mpv at least), and code works on my desktop, so far only difference I spotted is that working config have hw_params:
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 6000
buffer_size: 18000
while the error shows with one that (when played thru mpv) shows
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 882
buffer_size: 4410
(and 48000 rate when I play file using that sample rate)
Now it is not that card does not support S16_LE; when I force audio thrudmix plugin I get:
cat /proc/asound/card0/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 448
buffer_size: 11200
Any ideas what might be the cause of that ?