Module Mpd.Status
type state=|Play|Pause|Stop|ErrStateCurrent state (playing, pause or stopped) of the mpd server.
val string_of_state : state -> stringGet the string representation of a state.
val parse : string list -> tParse list of strings into a Mpd Status type
val volume : t -> intGet the volume level from a Mpd Status
val repeat : t -> boolFind out if the player is in repeat mode
val random : t -> boolFind out if the player is in random mode
val single : t -> boolFind out if the player is in single mode
val consume : t -> boolFind out if the player is in consume mode
val playlist : t -> intGet the current playlist id
val playlistlength : t -> intGet the current playlist length
val song : t -> intGet the song number of the current song stopped on or playing
val songid : t -> intGet the song id of the current song stopped on or playing
val nextsong : t -> intGet the next song number based on the current song stopped on or playing
val nextsongid : t -> intGet the next song id based on the current song stopped on or playing
val time : t -> stringGet the total time elapsed (of current playing/paused song)
val elapsed : t -> floatGet the total time elapsed within the current song, but with higher resolution
val duration : t -> floatReturns the totatl duration of the current song in seconds
val bitrate : t -> intGet the instantaneous bitrate in kbps
val xfade : t -> intGet the crossfade in seconds of the current song
val mixrampdb : t -> floatGet the mixramp threshold in dB
val mixrampdelay : t -> floatGet the mixrampdelay in seconds
val audio : t -> stringGet information of the audio file of the current song (sampleRate:bits:channels)
val updating_db : t -> intGet the job id
val error : t -> stringGet the error message if there is one