MphpD
v1.2.0 Documentation GitHub

# 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

- ##### $mphpd

- ##### $id

#### Returns `mixed`

### disable

Disable the given output

    Output::disable() : bool

#### Parameters

None.

#### Returns `bool`

bool `true` on success or `false` on failure.

### enable

Enable the given output

    Output::enable() : bool

#### Parameters

None.

#### 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

None.

#### 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

- ##### $name

- ##### $value

#### Returns `bool`

bool `true` on success or `false` on failure.

© 2023 Florian Faber