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

Returns mixed

disable

Disable the given output

Output::disable() : bool

Parameters

Returns bool

bool true on success or false on failure.

enable

Enable the given output

Output::enable() : bool

Parameters

Returns bool

bool true on success or false on failure.

toggle

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

Output::toggle() : bool

Parameters

Returns bool

bool true on success or false on failure.

set

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

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

Parameters

Returns bool

bool true on success or false on failure.

© 2023 Florian Faber