Module Mpd.Playback_options_lwt

val consume : Client_lwt.t -> bool -> Protocol.response Lwt.t

Sets consume state to STATE, STATE should be false or true. When consume is activated, each song played is removed from playlist.

val crossfade : Client_lwt.t -> int -> Protocol.response Lwt.t

Sets crossfading between songs.

val mixrampdb : Client_lwt.t -> int -> Protocol.response Lwt.t

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

type mixrampd_t =
| Nan
| Seconds of float

Type for the command mixrampdelay, it can be float for seconds or nan.

val mixrampdelay : Client_lwt.t -> mixrampd_t -> Protocol.response Lwt.t

Additional time subtracted from the overlap calculated by mixrampdb. A value of "nan" disables MixRamp overlapping and falls back to crossfading.

val random : Client_lwt.t -> bool -> Protocol.response Lwt.t

Sets random state to STATE, STATE should be true or false

val repeat : Client_lwt.t -> bool -> Protocol.response Lwt.t

Sets repeat state to STATE, STATE should be false or true.

val setvol : Client_lwt.t -> int -> Protocol.response Lwt.t

Sets volume to VOL, the range of volume is 0-100.

val single : Client_lwt.t -> bool -> Protocol.response Lwt.t

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.

type gain_mode_t =
| Off
| Track
| Album
| Auto

gain_mode type for the command replay_gain_mode.

val replay_gain_mode : Client_lwt.t -> gain_mode_t -> Protocol.response Lwt.t

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.