system-controller: fix out-of-bounds access in audio.c