Index | Diary

MPC add <file>

Adds a song from the music database to the playlist. Can also read input from pipes. Use "mpc ls | mpc add" to add all files to the playlist.

MPD sudo -u mpd alsamixer -D equal

cd to /var/lib/mpd/music/ then create a symbolic link to the media ln -s /media/A6AE-CAD9/ A6AE-CAD9 and run mpc update

More notes in wallabag [How to power a music server with Armbian](https://app.wallabag.it/view/8472240) [Auto-Mounting USB](https://app.wallabag.it/view/8652211)

*Pi will not boot if dics not present*

edit .asoundrci (This may not be required)

pcm.!default {
  type asym
  playback.pcm {
    type plug
    slave.pcm "output"
  }
  capture.pcm {
    type plug
    slave.pcm "input"
  }
}

pcm.output {
  type hw
  card 0
}

ctl.!default {
  type hw
  card 0
}

*To start PulseAudio on boot* echo 'pulseaudio --start' >> ~/.profile

or add ot users cron @reboot /usr/bin/pulseaudio --start --verbose

*Pulsemixer to increase sound sudo -u pi pulsemixer

https://mathieu-requillart.medium.com https://wiki.archlinux.org/index.php/Music_Player_Daemon/Tips_and_tricks#PulseAudio https://gist.github.com/awidegreen/6003640