No special options are required just add a pulse output as described in the comments of mpd's configuration file. There are more functions for mpc, run mpc(1) for more info. What irexec does is that it runs a specified command once received a remote control button.įirst of all, please setup your remotes as referred to the LIRC article.Įdit your favored lirc startup configuration file, default location is ~/.lircrc.įill the file with the following pattern: mpc is a command line player which only sends the command to MPD and exits immediately, which is perfect for irexec, the command runner included in lirc. It is recommended to use mpc with irexec. There are already some clients designed for communications between lircd and MPD, however, as far as the practical use, they are not very useful since their functions are limited. Note: Crossfading between files decoded at two different bit depths (say, one mp3 and one 16 bit flac) does not work unless conversion is active. what you have in /etc/nfĭevice "plug:dmix" # Both lines cause MPD to output to dmixĪuto_resample "no" # This bypasses ALSA's own algorithms, which generally are inferior. Name "your_custom_name" # Must be present and does not have to match the actual card name, e.g. Type "alsa" # Use the ALSA output plugin. This applies especially to the current user's potential ~/.asoundrc - which MPD as its own user ignores, therefore the following should go to /etc/nf: The following assumes that there are not already other settings which conflict resp. But there is no known way to have ALSA dynamically change the format, and particularly if you listen to far more CDs than anything else the occasional 48 to 44.1 is not too great a loss. What is the downside? These settings cause everything (if necessary) to be resampled to this format, such as material from DVD or TV which usually is at 48 KHz. Also, some get clicking sounds if at least mpd.conf is not changed this way. Why these formats? Because they are the standard format for CD audio, because ALSA on its own allows more than one program "to sound" only with dmix - which uses an inferior resampling algorithm by default - and because dmix by default resamples anything lower to 48 KHz (or whatever higher format is playing at the time). Add the line below to your mpd.conf to enable this feature.Įxample configuration: Output with 44.1 KHz at e. When this feature is enabled, mpd will always start in the "paused" state, even if a song was playing when mpd was stopped. This feature is present in mpd after version 0.16.2. YAMS also comes with a systemd service file that can be started with the rvice user unit after authentication is complete. Yams -h will print all command line options. Yams -a will attach to the current running instance's log file, allowing you to watch the daemon's output. Yams -k will kill the current running instance. Yams runs as a daemon by default ( yams -N will run it in the foreground). In order to authenticate, the user must run the yams command in an interactive terminal, at least once, and follow the printed instructions.Īfterwards, YAMS can be started with its binary: The python-yams AUR package is available. It also offers a decent amount of configuration options for when/how a scrobble should be made (including ignoring duplicate scrobbles when a track is played multiple times in a row). Similar to other scrobblers, YAMS can save failed scrobbles and upload them at a later date. YAMS is a Last.FM scrobbling daemon for MPD written in Python.Īs it is written for v2.0 of Last.FM's scrobbling API, YAMS does not store your username or password locally, but opts to use a cookie instead. Additionally, Sonata does not cache the songs if they cannot be forwarded to Last.fm at the time of playing, meaning they will not be added to the statistics. Sonata has built-in support for scrobbling, although that requires the program to run the whole time. Note: If you get a handshake failed, username or password incorrect (BADAUTH) error, make sure your username and password are correct, and that your password is not 32 characters long.
0 Comments
Leave a Reply. |