public function PHPVideoToolkit::setAudioChannels in Video 7
Same name and namespace in other branches
- 7.2 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 boolean false on error encountered, true otherwise
File
- libraries/
phpvideotoolkit/ phpvideotoolkit.php5.php, line 1513
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);
}