Added set priority to AddMetadataFilter class
This commit is contained in:
parent
89098b24a2
commit
35474279e1
1 changed files with 5 additions and 2 deletions
|
|
@ -9,16 +9,19 @@ class AddMetadataFilter implements AudioFilterInterface
|
|||
{
|
||||
/** @var Array */
|
||||
private $metaArr;
|
||||
/** @var Integer */
|
||||
private $priority;
|
||||
|
||||
function __construct($data = null)
|
||||
function __construct($data = null, $priority = 9)
|
||||
{
|
||||
$this->metaArr = $data;
|
||||
$this->priority = $priority;
|
||||
}
|
||||
|
||||
public function getPriority()
|
||||
{
|
||||
//must be of high priority in case theres a second input stream (artwork) to register with audio
|
||||
return 9;
|
||||
return $this->priority;
|
||||
}
|
||||
|
||||
public function apply(Audio $audio, AudioInterface $format)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue