linux audio tools recommendations 2015/09
Reply #23 – 2015-09-18 19:21:42
So what you are saying is that I can have mpd on a server where my library is, and the mpd client will play it on whichever device the client is running on? ReplayGain has to be client side for me, because depending on the playback mode, I need it to switch between track and album gain. Also, scanning. mpd uses a server (host) - client model. Let's say mpd is running on the host , where it needs to have access to the audio files. Either the files are on the local hard disk of the host, or the machine has access to the files e.g. via samba share. For the output, you can use any audio interface on the host machine, or optionally run a http audio stream (or both together). As mpd is the audio player, it also needs to apply replaygain. The client itself does not output any music, it only controls mpd playback (play, pause, volume, output selection, etc). What do you mean by "depending on the playback mode"? Afaik, it's not possible to assign different replaygain modes for the various output devices. However, you can still change the host's replaygain mode via most clients. Another approach might be to run several instances of mpd, ehere each has another output device assigned. Adding on this answer. Some clients can play MPD streams. MPDroid has this feature. This snippet from my mpd.conf might be useful:# Network settings for the daemon itself bind_to_address "10.8.0.1" port "55000" # Web stream is just another audio output audio_output { type "httpd" name "My HTTP Stream" encoder "flac" compression "5" port "8000" bind_to_address "10.8.0.1" format "44100:16:2" } You can bind the stream to a different address. For example, the daemon can be controlled via a secure VPN channel. But the audio can be streamed directly without tunneling (and the overhead/latency that comes with it). Export these environment variables so your local clients can still connect without changing their configuration:# Change to the address/port you used in mpd.conf export MPD_HOST=10.8.0.1 export MPD_PORT=55000