What's the advantage of using cpal over something like libmpv?
Rockbox already brings its own decoders (20+ codecs), its own DSP chain (crossfeed, EQ, replaygain, gapless), and its own mixer. I just need the host OS to accept PCM frames. cpal is the minimal portable shim for that; pulling in libmpv would mean discarding Rockbox's audio pipeline and replacing it with FFmpeg's, which would basically defeat the point of building on Rockbox firmware.
What is the point of bulding on Rockbox firmware? I love Rockbox myself too so the answer can be "fun" and that is all right.