Initial commit
This commit is contained in:
12
examples/list-sinks.php
Normal file
12
examples/list-sinks.php
Normal 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());
|
||||
}
|
Reference in New Issue
Block a user