added waveform color option

This commit is contained in:
Ivan Ganev 2017-11-02 17:28:12 +02:00
commit 9314f64f54
4 changed files with 54 additions and 5 deletions

View file

@ -110,8 +110,8 @@ class Audio extends AbstractStreamableMedia
* @param integer $height
* @return Waveform
*/
public function waveform($width = 640, $height = 120)
public function waveform($width = 640, $height = 120, $colors = [Waveform::DEFAULT_COLOR])
{
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height);
return new Waveform($this, $this->driver, $this->ffprobe, $width, $height, $colors);
}
}