A useful standard that hasn’t really bothered most of us is S/PDIF, standing for Sony/Phillips Digital Interface. It’s a useful way to pump digital audio around over copper cables or optic fiber.
pcm.!default { type plug slave.pcm "raspdif" } pcm.raspdif { type plug slave { pcm { type file file "/tmp/spdif_fifo" format "raw" slave.pcm null } rate 44100 format S16_LE channels 2 } hint { ...
This is the S/PDIF driver for ESP32. The driver files are follows. spdif.h spdif.c The three APIs are provided. void spdif_init(int rate) void spdif_write(const void *src, size_t size) void ...