<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Playback_options (libmpdclient.Mpd.Playback_options)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../../index.html">libmpdclient</a> &#x00BB; <a href="../index.html">Mpd</a> &#x00BB; Playback_options</nav><h1>Module <code>Mpd.Playback_options</code></h1></header><aside><p>functions that configure all the playbackoptions</p></aside><dl><dt class="spec value" id="val-consume"><a href="#val-consume" class="anchor"></a><code><span class="keyword">val </span>consume : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> bool <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets consume state to STATE, STATE should be false or true. When consume is activated, each song played is removed from playlist.</p></dd></dl><dl><dt class="spec value" id="val-crossfade"><a href="#val-crossfade" class="anchor"></a><code><span class="keyword">val </span>crossfade : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets crossfading between songs.</p></dd></dl><dl><dt class="spec value" id="val-mixrampdb"><a href="#val-mixrampdb" class="anchor"></a><code><span class="keyword">val </span>mixrampdb : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets the threshold at which songs will be overlapped. Like crossfading but doesn't fade the track volume, just overlaps. The songs need to have MixRamp tags added by an external tool. 0dB is the normalized maximum volume so use negative values, I prefer -17dB. In the absence of mixramp tags crossfading will be used. See http://sourceforge.net/projects/mixramp</p></dd></dl><dl><dt class="spec type" id="type-mixrampd_t"><a href="#type-mixrampd_t" class="anchor"></a><code><span class="keyword">type </span>mixrampd_t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-mixrampd_t.Nan" class="anchored"><td class="def constructor"><a href="#type-mixrampd_t.Nan" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Nan</span></code></td></tr><tr id="type-mixrampd_t.Seconds" class="anchored"><td class="def constructor"><a href="#type-mixrampd_t.Seconds" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Seconds</span><span class="keyword"> of </span>float</code></td><td class="doc"><p>Type for the command mixrampdelay, it can be float number for seconds or nan.</p></td></tr></table></dt></dl><dl><dt class="spec value" id="val-mixrampdelay"><a href="#val-mixrampdelay" class="anchor"></a><code><span class="keyword">val </span>mixrampdelay : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> <a href="index.html#type-mixrampd_t">mixrampd_t</a> <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Additional time subtracted from the overlap calculated by mixrampdb. A value of &quot;nan&quot; disables MixRamp overlapping and falls back to crossfading.</p></dd></dl><dl><dt class="spec value" id="val-random"><a href="#val-random" class="anchor"></a><code><span class="keyword">val </span>random : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> bool <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets random state to STATE, STATE should be true or false</p></dd></dl><dl><dt class="spec value" id="val-repeat"><a href="#val-repeat" class="anchor"></a><code><span class="keyword">val </span>repeat : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> bool <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets repeat state to STATE, STATE should be false or true.</p></dd></dl><dl><dt class="spec value" id="val-setvol"><a href="#val-setvol" class="anchor"></a><code><span class="keyword">val </span>setvol : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets volume to VOL, the range of volume is 0-100.</p></dd></dl><dl><dt class="spec value" id="val-single"><a href="#val-single" class="anchor"></a><code><span class="keyword">val </span>single : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> bool <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets single state to STATE, STATE should be 0 or 1. When single is activated, playback is stopped after current song, or song is repeated if the 'repeat' mode is enabled.</p></dd></dl><dl><dt class="spec type" id="type-gain_mode_t"><a href="#type-gain_mode_t" class="anchor"></a><code><span class="keyword">type </span>gain_mode_t</code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-gain_mode_t.Off" class="anchored"><td class="def constructor"><a href="#type-gain_mode_t.Off" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Off</span></code></td></tr><tr id="type-gain_mode_t.Track" class="anchored"><td class="def constructor"><a href="#type-gain_mode_t.Track" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Track</span></code></td></tr><tr id="type-gain_mode_t.Album" class="anchored"><td class="def constructor"><a href="#type-gain_mode_t.Album" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Album</span></code></td></tr><tr id="type-gain_mode_t.Auto" class="anchored"><td class="def constructor"><a href="#type-gain_mode_t.Auto" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Auto</span></code></td><td class="doc"><p>gain_mode type for the command replay_gain_mode.</p></td></tr></table></dt></dl><dl><dt class="spec value" id="val-replay_gain_mode"><a href="#val-replay_gain_mode" class="anchor"></a><code><span class="keyword">val </span>replay_gain_mode : <a href="../Client/index.html#type-t">Client.t</a> <span>&#45;&gt;</span> <a href="index.html#type-gain_mode_t">gain_mode_t</a> <span>&#45;&gt;</span> <a href="../Protocol/index.html#type-response">Protocol.response</a></code></dt><dd><p>Sets the replay gain mode. One of off, track, album, auto. Changing the mode during playback may take several seconds, because the new settings does not affect the buffered data. This command triggers the options idle event.</p></dd></dl></div></body></html>