forgot to update the README and describe the third waveform() param
This commit is contained in:
		
					parent
					
						
							
								ff1a36fdcc
							
						
					
				
			
			
				commit
				
					
						5d4dd8de37
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -159,13 +159,13 @@ You can generate a waveform of an audio file using the `FFMpeg\Media\Audio::wave | ||||||
| method. | method. | ||||||
| 
 | 
 | ||||||
| This code returns a `FFMpeg\Media\Waveform` instance. | This code returns a `FFMpeg\Media\Waveform` instance. | ||||||
| You can optionally pass dimensions as arguments, see dedicated | You can optionally pass dimensions as the first two arguments and an array of hex string colors for ffmpeg to use for the waveform, see dedicated | ||||||
| documentation below for more information. | documentation below for more information. | ||||||
| 
 | 
 | ||||||
| The ouput file MUST use the PNG extension. | The ouput file MUST use the PNG extension. | ||||||
| 
 | 
 | ||||||
| ```php | ```php | ||||||
| $waveform = $audio->waveform(640, 120, ['#00FF00']); | $waveform = $audio->waveform(640, 120, ['#00FF00/']); | ||||||
| $waveform->save('waveform.png'); | $waveform->save('waveform.png'); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue