scratch – Blame information for rev 115
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
115 | office | 1 | <?php |
2 | |||
3 | /* |
||
4 | * This file is part of PHP-FFmpeg. |
||
5 | * |
||
6 | * (c) Alchemy <info@alchemy.fr> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace FFMpeg\Filters\Audio; |
||
13 | |||
14 | use FFMpeg\Media\Audio; |
||
15 | use FFMpeg\Format\AudioInterface; |
||
16 | |||
17 | class SimpleFilter implements AudioFilterInterface |
||
18 | { |
||
19 | private $params; |
||
20 | private $priority; |
||
21 | |||
22 | public function __construct(array $params, $priority = 0) |
||
23 | { |
||
24 | $this->params = $params; |
||
25 | $this->priority = $priority; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function getPriority() |
||
32 | { |
||
33 | return $this->priority; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function apply(Audio $audio, AudioInterface $format) |
||
40 | { |
||
41 | return $this->params; |
||
42 | } |
||
43 | } |