Initial commit
This commit is contained in:
47
src/Sink/SinkInput.php
Normal file
47
src/Sink/SinkInput.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace NoccyLabs\PulseAudio\Sink;
|
||||
|
||||
use NoccyLabs\PulseAudio\PropertyList;
|
||||
|
||||
class SinkInput
|
||||
{
|
||||
|
||||
protected $index;
|
||||
|
||||
protected $sink;
|
||||
|
||||
protected $client;
|
||||
|
||||
protected $properties;
|
||||
|
||||
public function __construct($index, array $input=[])
|
||||
{
|
||||
$this->index = $index;
|
||||
$this->sink = $input['sink'];
|
||||
$this->client = $input['client'];
|
||||
$this->properties = new PropertyList($input['properties'], true);
|
||||
}
|
||||
|
||||
public function getIndex()
|
||||
{
|
||||
return $this->index;
|
||||
}
|
||||
|
||||
public function getSink()
|
||||
{
|
||||
return $this->sink;
|
||||
}
|
||||
|
||||
public function getClient()
|
||||
{
|
||||
return $this->client;
|
||||
}
|
||||
|
||||
public function moveToSink(Sink $sink)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user