Initial commit

This commit is contained in:
2017-02-13 02:53:48 +01:00
commit b347a8e22b
25 changed files with 1449 additions and 0 deletions

12
examples/list-sinks.php Normal file
View File

@ -0,0 +1,12 @@
<?php
require_once __DIR__."/../vendor/autoload.php";
use NoccyLabs\PulseAudio\PulseAudio;
$pulse = new PulseAudio();
$sinks = $pulse->getSinks();
foreach ($sinks as $sink) {
printf(" [#%d] %s => %s (%s)\n", $sink->getIndex(), $sink->getName(), $sink->getCard(), $sink->getDriver());
}