duncan3dc\Sonos\Controller::useLineIn PHP Method

useLineIn() public method

If no speaker is passed then the current controller's is used.
public useLineIn ( duncan3dc\Sonos\Speaker $speaker = null ) : static
$speaker duncan3dc\Sonos\Speaker The speaker to get the line-in from
return static
    public function useLineIn(Speaker $speaker = null)
    {
        if ($speaker === null) {
            $speaker = $this;
        }
        $uri = "x-rincon-stream:" . $speaker->getUuid();
        $stream = new Stream($uri, "Line-In");
        return $this->useStream($stream);
    }