The server runing on Linux (with spotify/vlc) sends the audio (32 bit PCM) to the Android client using plain TCP.
The android client also has simple controls: prev/next song, play/pause. The server discovery is made using DNS-SD (DNS Service Discovery)
The server is made using the Odin programming language with:
- vendor:miniaudio to capture the audio of the Linux desktop
- odin-dbus to communicate with: spotify and avahi
The client can be found at github.com/PiterWeb/audio-be-android
You will need to clone the repo with submodules
git clone --recurse-submodules https://github.com/PiterWeb/audio-be.gitThen you compile with the Odin compiler
odin build .