scratch – Blame information for rev 115

Subversion Repositories:
Rev:
Rev Author Line No. Line
115 office 1 <?php
2  
3 /*
4 * This file is part of PHP-FFmpeg.
5 *
6 * (c) Strime <contact@strime.io>
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\Waveform;
13  
14 use FFMpeg\Media\Waveform;
15  
16 class WaveformFilters
17 {
18 private $waveform;
19  
20 public function __construct(Waveform $waveform)
21 {
22 $this->waveform = $waveform;
23 }
24  
25 /**
26 * Sets the downmix of the output waveform.
27 *
28 * If you want a simpler waveform, sets the downmix to TRUE.
29 *
30 * @return WaveformFilters
31 */
32 public function setDownmix()
33 {
34 $this->waveform->addFilter(new WaveformDownmixFilter());
35  
36 return $this;
37 }
38 }