mpc-js
    Preparing search index...

    Class PlaybackOptionsCommands

    Index

    Constructors

    Methods

    • Sets consume state. When consume is activated, each song played is removed from playlist.

      Parameters

      • consume: boolean

      Returns Promise<void>

    • 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]

      Parameters

      • decibels: number

      Returns Promise<void>

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

      Parameters

      • seconds: number

      Returns Promise<void>

    • 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.

      Parameters

      • mode: "off" | "track" | "album" | "auto"

      Returns Promise<void>

    • Sets single state. When single is activated, playback is stopped after current song, or song is repeated if the 'repeat' mode is enabled.

      Parameters

      • single: boolean | "oneshot"

      Returns Promise<void>