Output

This subclass is used to configure audio outputs. Have a look at the MPD doc for more.

MphpD::output(int $id) : Output

Methods

__construct

This class is not intended for direct usage. Use MphpD::output() instead to retrieve an instance of this class.

Output::__construct(FloFaber\MphpD\MphpD $mphpd, int $id) : mixed

Parameters

@param \MphpD $mphpd

@param int $id

Returns mixed

disable

Disable the given output

Output::disable() : bool

Parameters

None.

Returns bool

bool

enable

Enable the given output

Output::enable() : bool

Parameters

None.

Returns bool

bool

toggle

Enable/Disable the given output depending on the current state.

Output::toggle() : bool

Parameters

None.

Returns bool

bool

set

Set a runtime attribute. Supported values can be retrieved from the MphpD::outputs() method.

Output::set(string $name, string $value) : bool

Parameters

@param string $name

@param string $value

Returns bool

bool

© 2023 Florian Faber