public function PHPVideoToolkit::setAudioChannels in Video 7.2
Same name and namespace in other branches
- 7 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::setAudioChannels()
Sets the number of audio channels
@access public
Parameters
integer $channel_type Valid values are PHPVideoToolkit::AUDIO_MONO, PHPVideoToolkit::AUDIO_STEREO:
Return value
boolean FALSE on error encountered, TRUE otherwise
File
- libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php, line 1491 - Libary to access FFmpeg
Class
Code
public function setAudioChannels($channel_type = PHPVideoToolkit::AUDIO_MONO) {
// validate input
if (!in_array($channel_type, array(
self::AUDIO_MONO,
self::AUDIO_STEREO,
))) {
return $this
->_raiseError('setAudioChannels_valid_channels', array(
'channels' => $channel_type,
));
// <- exits
}
return $this
->addCommand('-ac', $channel_type);
}