20 lines
366 B
PHP
20 lines
366 B
PHP
|
<?php
|
||
|
|
||
|
require_once __DIR__."/../vendor/autoload.php";
|
||
|
|
||
|
use NoccyLabs\PulseAudio\PulseAudio;
|
||
|
|
||
|
$pulse = new PulseAudio();
|
||
|
$modules = $pulse->getModules();
|
||
|
|
||
|
echo "Loaded modules:\n";
|
||
|
foreach ($modules as $module) {
|
||
|
echo " - ".$module->getName()."\n";
|
||
|
}
|
||
|
|
||
|
|
||
|
// $ret = Pacmd::query("list-sinks");
|
||
|
// echo json_encode($ret, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
|
||
|
|
||
|
|